style: 修复 clippy --all-targets 告警

This commit is contained in:
爱特每羊队
2026-06-30 15:18:13 +08:00
parent 26839db07b
commit 5feba7c20d
5 changed files with 129 additions and 128 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ fn date_local_getters_differ_from_utc() {
if utc_hour != local_hour {
assert_ne!(local_hour, utc_hour, "in non-UTC+0, local vs UTC hours should differ");
}
assert!(local_hour >= 0.0 && local_hour < 24.0);
assert!((0.0..24.0).contains(&local_hour));
}
#[test]