We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f883d91 commit 40e28d4Copy full SHA for 40e28d4
command_attr/src/structures.rs
@@ -101,7 +101,7 @@ fn is_cooked(attr: &Attribute) -> bool {
101
}
102
103
pub fn is_rustfmt_or_clippy_attr(path: &Path) -> bool {
104
- 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")
105
106
107
/// Removes cooked attributes from a vector of attributes. Uncooked attributes are left in the
0 commit comments