From: Jason Ish Date: Thu, 9 Mar 2023 17:48:53 +0000 (-0600) Subject: rust/clippy: allow derivable impls X-Git-Tag: suricata-7.0.0-rc2~530 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=159b72c101b8e3965d3af61e9dccbcdfc9b5a864;p=thirdparty%2Fsuricata.git rust/clippy: allow derivable impls 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. --- diff --git a/rust/src/lib.rs b/rust/src/lib.rs index f85765a7f3..4c23853827 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -33,6 +33,10 @@ // 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)]