Skip to content

Commit

Permalink
Fix MSRV violation
Browse files Browse the repository at this point in the history
  • Loading branch information
umanwizard committed Dec 13, 2022
1 parent 8108de4 commit 6745898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/naive/datetime/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fn test_datetime_from_timestamp_micros() {
// Test that the result of `from_timestamp_micros` compares equal to
// that of `from_timestamp_opt`.
let secs_test = [0, 1, 2, 1000, 1234, 12345678, -1, -2, -1000, -12345678];
for secs in secs_test {
for secs in secs_test.iter().cloned() {
assert_eq!(
NaiveDateTime::from_timestamp_micros(secs * 1_000_000),
NaiveDateTime::from_timestamp_opt(secs, 0)
Expand Down

0 comments on commit 6745898

Please sign in to comment.