From 35678bd2d61be398e355007c804ce7f801d0a5dc Mon Sep 17 00:00:00 2001 From: Corentin Machu Date: Thu, 1 Aug 2024 16:00:04 +0200 Subject: [PATCH] Allow `clippy::trivially_copy_pass_by_ref` for `rapidflux` Ref. eng/recordflux/RecordFlux#1745 --- rapidflux/src/diagnostics/errors.rs | 3 --- rapidflux/src/lib.rs | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/rapidflux/src/diagnostics/errors.rs b/rapidflux/src/diagnostics/errors.rs index d0c8bbb33..d936a4298 100644 --- a/rapidflux/src/diagnostics/errors.rs +++ b/rapidflux/src/diagnostics/errors.rs @@ -1,5 +1,3 @@ -#![allow(clippy::trivially_copy_pass_by_ref)] - use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, @@ -57,7 +55,6 @@ impl Severity { }) } - #[allow(clippy::trivially_copy_pass_by_ref)] pub fn __getnewargs__(&self) -> (String,) { // Removing ANSI escapes is needed here otherwise Python will not be able to rebuild the // object while calling `pickle.load` diff --git a/rapidflux/src/lib.rs b/rapidflux/src/lib.rs index 1232743c2..c7a7c5a85 100644 --- a/rapidflux/src/lib.rs +++ b/rapidflux/src/lib.rs @@ -1,5 +1,6 @@ #![deny(clippy::pedantic)] #![allow( + clippy::trivially_copy_pass_by_ref, clippy::type_complexity, clippy::unsafe_derive_deserialize, clippy::unused_self