]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: allow uninlined_format_args
authorJason Ish <jason.ish@oisf.net>
Thu, 26 Jan 2023 17:02:36 +0000 (11:02 -0600)
committerVictor Julien <vjulien@oisf.net>
Thu, 26 Jan 2023 21:02:54 +0000 (22:02 +0100)
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
rust/src/lib.rs

index 2b4419e221f1c0df90ae2ddd3ecabb30f70cf99c..a2b7a6ad04422c047e70db667fa30e55b0d62667 100644 (file)
@@ -15,6 +15,8 @@
  * 02110-1301, USA.
  */
 
+#![allow(clippy::uninlined_format_args)]
+
 extern crate proc_macro;
 
 use proc_macro::TokenStream;
index a6828ff8036228e891a1dcd30c098ac569930fb4..f85765a7f3eb7a47cf927fef162f90bed62fc6c0 100644 (file)
@@ -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)]