Skip to content

Commit

Permalink
Fix clippy warnings breaking CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Nov 18, 2024
1 parent f883d91 commit 40e28d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command_attr/src/structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40e28d4

Please sign in to comment.