Clippy the Pendant

This commit is contained in:
dbr 2021-06-05 12:05:56 +10:00
parent 8069d1badc
commit 4cc41a8731

View file

@ -20,7 +20,7 @@ impl Command {
.file_name()
// Convert to string, very unlikely to contain non-UTF8
.map(|x| x.to_string_lossy().to_string())
.unwrap_or(input.0.to_owned());
.unwrap_or_else(|| input.0.to_owned());
let command = Command {
command_name,