Skip to content

Commit

Permalink
Silence clippy lint for test code
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Nov 27, 2023
1 parent e1a9494 commit d7b4a82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datetime/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d7b4a82

Please sign in to comment.