forked from mirrors/jj
cleanup: fix clippy issues
This commit is contained in:
parent
7f3d07e35f
commit
0fff404fb2
2 changed files with 2 additions and 2 deletions
|
@ -2184,7 +2184,7 @@ fn resolve_default_command(
|
||||||
}
|
}
|
||||||
let default_command = config
|
let default_command = config
|
||||||
.get_string("ui.default-command")
|
.get_string("ui.default-command")
|
||||||
.unwrap_or("log".to_string());
|
.unwrap_or_else(|_| "log".to_string());
|
||||||
// Insert the default command directly after the path to the binary.
|
// Insert the default command directly after the path to the binary.
|
||||||
string_args.insert(1, default_command);
|
string_args.insert(1, default_command);
|
||||||
}
|
}
|
||||||
|
|
|
@ -392,7 +392,7 @@ fn test_log_prefix_highlight_styled() {
|
||||||
branches,
|
branches,
|
||||||
)
|
)
|
||||||
"###,
|
"###,
|
||||||
len.map(|l| l.to_string()).unwrap_or(String::default())
|
len.map(|l| l.to_string()).unwrap_or_default()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue