From a5365f6e08e9da69f3c240ed685516978ac78af9 Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Tue, 20 Dec 2022 19:48:09 -0800 Subject: [PATCH] Address clippy lint violations in Rust 1.66.0 --- src/format/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/format/mod.rs b/src/format/mod.rs index 3f411eed..aee6a971 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -330,6 +330,7 @@ impl Piece { } /// Format nanoseconds with the specified precision. + #[allow(clippy::uninlined_format_args)] // for readability and symmetry between if branches fn format_nanoseconds( &self, f: &mut SizeLimiter<'_>, @@ -1031,6 +1032,6 @@ mod tests { Spec::CombinationTime24h, ); - assert!(!format!("{:?}", piece).is_empty()); + assert!(!format!("{piece:?}").is_empty()); } }