Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Aug 9, 2024
1 parent af6435a commit e47f2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/linting/src/require_freeze_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ impl<'ast> Visit<'ast> for EncodeDecodeVisitor {
let has_encode_decode = node
.attrs
.iter()
.any(|attr| is_derive_encode_or_decode(attr));
let has_freeze_struct = node.attrs.iter().any(|attr| is_freeze_struct(attr));
.any(is_derive_encode_or_decode);
let has_freeze_struct = node.attrs.iter().any(is_freeze_struct);

if has_encode_decode && !has_freeze_struct {
self.errors.push(syn::Error::new(
Expand Down

0 comments on commit e47f2de

Please sign in to comment.