Clippy the Pendant
This commit is contained in:
@@ -20,7 +20,7 @@ impl Command {
|
|||||||
.file_name()
|
.file_name()
|
||||||
// Convert to string, very unlikely to contain non-UTF8
|
// Convert to string, very unlikely to contain non-UTF8
|
||||||
.map(|x| x.to_string_lossy().to_string())
|
.map(|x| x.to_string_lossy().to_string())
|
||||||
.unwrap_or(input.0.to_owned());
|
.unwrap_or_else(|| input.0.to_owned());
|
||||||
|
|
||||||
let command = Command {
|
let command = Command {
|
||||||
command_name,
|
command_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user