From dbdbed4dcc788766bc553a395f0c895d77f66188 Mon Sep 17 00:00:00 2001 From: atlas Date: Mon, 9 Nov 2026 11:04:57 +0100 Subject: [PATCH] swarmctl: clippy redundant closure in color_wanted --- swarmctl/src/setup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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