Watch
0
0
Fork
You've already forked hyperhive
0

swarmctl: clippy redundant closure in color_wanted

This commit is contained in:
atlas 2026-11-09 11:04:57 +01:00 • committed by mara
commit dbdbed4dcc

View file

@ -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