From 40e28d424d78364a67a1419affc34bb5da0fbf87 Mon Sep 17 00:00:00 2001 From: GnomedDev Date: Mon, 18 Nov 2024 10:33:52 +0000 Subject: [PATCH] Fix clippy warnings breaking CI --- command_attr/src/structures.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command_attr/src/structures.rs b/command_attr/src/structures.rs index bab59084704..df620c3133a 100644 --- a/command_attr/src/structures.rs +++ b/command_attr/src/structures.rs @@ -101,7 +101,7 @@ fn is_cooked(attr: &Attribute) -> bool { } pub fn is_rustfmt_or_clippy_attr(path: &Path) -> bool { - path.segments.first().map_or(false, |s| s.ident == "rustfmt" || s.ident == "clippy") + path.segments.first().is_some_and(|s| s.ident == "rustfmt" || s.ident == "clippy") } /// Removes cooked attributes from a vector of attributes. Uncooked attributes are left in the