swarmctl: clippy redundant closure in color_wanted
This commit is contained in:
parent
e37e8c3327
commit
dbdbed4dcc
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ fn color_enabled() -> bool {
|
|||
}
|
||||
|
||||
fn color_wanted(is_terminal: bool, no_color: Option<&std::ffi::OsStr>) -> bool {
|
||||
is_terminal && no_color.is_none_or(|v| v.is_empty())
|
||||
is_terminal && no_color.is_none_or(std::ffi::OsStr::is_empty)
|
||||
}
|
||||
|
||||
/// The step report: a header with the count and a bar, one line per step
|
||||
|
|
|
|||
Loading…
Reference in a new issue