diff --git a/swarmctl/src/setup.rs b/swarmctl/src/setup.rs index 9ae32e241..c53886fce 100644 --- a/swarmctl/src/setup.rs +++ b/swarmctl/src/setup.rs @@ -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