From 29f345af1af521ff8ae03a344e4e0cb81d1e9cde Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 26 Jan 2023 11:02:36 -0600 Subject: [PATCH] rust: allow uninlined_format_args Newer versions of Rust/clippy are getting picky about format strings. We should allow and use the new style, but also not prevent the old style. --- rust/derive/src/lib.rs | 2 ++ rust/src/lib.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/rust/derive/src/lib.rs b/rust/derive/src/lib.rs index 2b4419e221..a2b7a6ad04 100644 --- a/rust/derive/src/lib.rs +++ b/rust/derive/src/lib.rs @@ -15,6 +15,8 @@ * 02110-1301, USA. */ +#![allow(clippy::uninlined_format_args)] + extern crate proc_macro; use proc_macro::TokenStream; diff --git a/rust/src/lib.rs b/rust/src/lib.rs index a6828ff803..f85765a7f3 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -20,6 +20,7 @@ // Allow these patterns as its a style we like. #![allow(clippy::needless_return)] #![allow(clippy::let_and_return)] +#![allow(clippy::uninlined_format_args)] // We find this makes sense at time. #![allow(clippy::module_inception)]