Skip to content

Commit 40e28d4

Browse files
committed
Fix clippy warnings breaking CI
1 parent f883d91 commit 40e28d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command_attr/src/structures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn is_cooked(attr: &Attribute) -> bool {
101101
}
102102

103103
pub fn is_rustfmt_or_clippy_attr(path: &Path) -> bool {
104-
path.segments.first().map_or(false, |s| s.ident == "rustfmt" || s.ident == "clippy")
104+
path.segments.first().is_some_and(|s| s.ident == "rustfmt" || s.ident == "clippy")
105105
}
106106

107107
/// Removes cooked attributes from a vector of attributes. Uncooked attributes are left in the

0 commit comments

Comments
 (0)