From d7b4a82027471896caa175b07918fe883a5bef58 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 20 Nov 2023 09:26:05 +0100 Subject: [PATCH] Silence clippy lint for test code --- src/datetime/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/datetime/tests.rs b/src/datetime/tests.rs index 42b014983d..3df11e78d4 100644 --- a/src/datetime/tests.rs +++ b/src/datetime/tests.rs @@ -412,6 +412,7 @@ fn signed_duration_since_autoref() { let dt1 = Utc.with_ymd_and_hms(2014, 5, 6, 7, 8, 9).unwrap(); let dt2 = Utc.with_ymd_and_hms(2014, 3, 4, 5, 6, 7).unwrap(); let diff1 = dt1.signed_duration_since(dt2); // Copy/consume + #[allow(clippy::needless_borrows_for_generic_args)] let diff2 = dt2.signed_duration_since(&dt1); // Take by reference assert_eq!(diff1, -diff2);