From 159b72c101b8e3965d3af61e9dccbcdfc9b5a864 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 9 Mar 2023 11:48:53 -0600 Subject: [PATCH] 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. --- rust/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) 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)] -- 2.47.2