Skip to content

Commit 50d834b

Browse files
committed
allow(clippy::eq_op) in automatically derived code
As of the last commit, 'const NEEDS_TRACE' may generate duplicates...
1 parent 7f6a5e8 commit 50d834b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/derive/src/derive.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,8 @@ impl TraceDeriveInput {
982982
};
983983
let mutability = if !immutable { Some(<syn::Token![mut]>::default()) } else { None };
984984
Ok(quote! {
985+
#[allow(clippy::eq_op)] // NOTE: clippy doesn't like duplicates in 'NEEDS_TRACE'
986+
#[automatically_derived]
985987
unsafe impl #impl_generics #trait_name for #target_type #ty_generics #where_clause {
986988
#assoc_constants
987989
fn #method_name<TargetVisitor: zerogc::GcVisitor>(&#mutability self, gc_visitor: &mut TargetVisitor) -> Result<(), TargetVisitor::Err> {

0 commit comments

Comments
 (0)