]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/clippy: allow derivable impls
authorJason Ish <jason.ish@oisf.net>
Thu, 9 Mar 2023 17:48:53 +0000 (11:48 -0600)
committerVictor Julien <vjulien@oisf.net>
Sat, 11 Mar 2023 06:31:13 +0000 (07:31 +0100)
The latest Rust will automatically "fix" derivable default
implementation, which is nice, but makes changes that don't meet our
current MSRV, so allow derivable impls for now.

rust/src/lib.rs

index f85765a7f3eb7a47cf927fef162f90bed62fc6c0..4c238538273ace3284ed66d817b4cb3fa5a0b8b9 100644 (file)
 // is unavoidable at this time.
 #![allow(clippy::too_many_arguments)]
 
+// This would be nice, but having this lint enables causes
+// clippy --fix to make changes that don't meet our MSRV.
+#![allow(clippy::derivable_impls)]
+
 // TODO: All unsafe functions should have a safety doc, even if its
 // just due to FFI.
 #![allow(clippy::missing_safety_doc)]