From 05b9a82a380af013338c4f42045811fc15689a6b Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Tue, 31 Jan 2023 08:41:34 +0100 Subject: [PATCH] Clippy fix --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 5154f7e..5e01328 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,10 @@ #![allow(clippy::upper_case_acronyms)] #![allow(clippy::result_large_err)] #![allow(clippy::only_used_in_recursion)] +// println!("{var}") doesn't allow even the simplest expressions for var, +// such as "{foo.var}" – hence this lint forces us to have inconsistent +// formatting args. I prefer a lint that forbid "{var}". +#![allow(clippy::uninlined_format_args)] //!
//!