diff --git a/components/salsa-2022-macros/src/tracked_struct.rs b/components/salsa-2022-macros/src/tracked_struct.rs index 90f0907..feb3603 100644 --- a/components/salsa-2022-macros/src/tracked_struct.rs +++ b/components/salsa-2022-macros/src/tracked_struct.rs @@ -195,6 +195,7 @@ impl TrackedStruct { let constructor_name = self.constructor_name(); parse_quote! { + #[allow(clippy::too_many_arguments)] impl #ident { pub fn #constructor_name(__db: &#db_dyn_ty, #(#field_names: #field_tys,)*) -> Self { diff --git a/salsa-2022-tests/tests/create-empty-database.rs b/salsa-2022-tests/tests/create-empty-database.rs index 9064a24..a417d88 100644 --- a/salsa-2022-tests/tests/create-empty-database.rs +++ b/salsa-2022-tests/tests/create-empty-database.rs @@ -31,5 +31,6 @@ fn ensure_init(place: *const ::Jars) { // SAFETY: Intentionally tries to access potentially uninitialized memory, // so that miri can catch if we accidentally forget to initialize the memory. + #[allow(clippy::forget_non_drop)] forget(unsafe { addr_of!((*place).0).read() }); } diff --git a/salsa-2022-tests/tests/lru.rs b/salsa-2022-tests/tests/lru.rs index a1ad9a9..2b84f3c 100644 --- a/salsa-2022-tests/tests/lru.rs +++ b/salsa-2022-tests/tests/lru.rs @@ -19,7 +19,7 @@ trait Db: salsa::DbWithJar + HasLogger {} struct HotPotato(u32); thread_local! { - static N_POTATOES: AtomicUsize = AtomicUsize::new(0) + static N_POTATOES: AtomicUsize = const { AtomicUsize::new(0) } } impl HotPotato { diff --git a/salsa-2022-tests/tests/tracked-struct-field-bad-eq.rs b/salsa-2022-tests/tests/tracked-struct-field-bad-eq.rs index 65a1357..bd487a8 100644 --- a/salsa-2022-tests/tests/tracked-struct-field-bad-eq.rs +++ b/salsa-2022-tests/tests/tracked-struct-field-bad-eq.rs @@ -14,6 +14,7 @@ struct MyInput { field: bool, } +#[allow(clippy::derived_hash_with_manual_eq)] #[derive(Eq, Hash, Debug, Clone)] struct BadEq { field: bool,