Skip to content

Commit

Permalink
chore: Remove allow
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Dec 24, 2024
1 parent 93e17e3 commit 90ffc0c
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/file_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,6 @@ mod tests {
}

#[cfg(feature = "std")]
#[allow(clippy::cast_possible_truncation)]
#[test_strategy::proptest]
fn to_high_low_roundtrip(ft: FileTime) {
use proptest::prop_assert_eq;
Expand Down
6 changes: 0 additions & 6 deletions src/file_time/dos_date_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ mod tests {
}

#[test]
#[allow(clippy::too_many_lines)]
fn to_dos_date_time() {
// `1980-01-01 00:00:00 UTC`.
assert_eq!(
Expand Down Expand Up @@ -555,7 +554,6 @@ mod tests {

#[test]
#[should_panic]
#[allow(clippy::should_panic_without_expect)]
fn to_dos_date_time_with_invalid_positive_offset() {
// From `1980-01-01 00:00:00 UTC` to `1980-01-01 16:00:00 +16:00`.
let _ = FileTime::new(119_600_064_000_000_000)
Expand All @@ -565,7 +563,6 @@ mod tests {

#[test]
#[should_panic]
#[allow(clippy::should_panic_without_expect)]
fn to_dos_date_time_with_invalid_negative_offset() {
// From `2107-12-31 23:59:58 UTC` to `2107-12-31 07:44:58 -16:15`.
let _ = FileTime::new(159_992_927_980_000_000)
Expand Down Expand Up @@ -732,22 +729,19 @@ mod tests {

#[test]
#[should_panic]
#[allow(clippy::should_panic_without_expect)]
fn from_dos_date_time_with_invalid_resolution() {
let _ = FileTime::from_dos_date_time(0x0021, u16::MIN, Some(200), None).unwrap();
}

#[test]
#[should_panic]
#[allow(clippy::should_panic_without_expect)]
fn from_dos_date_time_with_invalid_positive_offset() {
// From `2107-12-31 23:59:58 +16:00` to `2107-12-31 07:59:58 UTC`.
let _ = FileTime::from_dos_date_time(0xff9f, 0xbf7d, None, Some(offset!(+16:00))).unwrap();
}

#[test]
#[should_panic]
#[allow(clippy::should_panic_without_expect)]
fn from_dos_date_time_with_invalid_negative_offset() {
// From `1980-01-01 00:00:00 -16:15` to `1980-01-01 16:15:00 UTC`.
let _ =
Expand Down
1 change: 0 additions & 1 deletion src/file_time/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ mod tests {

use proptest::prop_assert_eq;

#[allow(clippy::option_if_let_else)]
let json = if let Some(r) = raw {
format!(r#"{{"time":{r}}}"#)
} else {
Expand Down
1 change: 0 additions & 1 deletion src/file_time/unix_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,6 @@ mod tests {

#[test]
#[should_panic]
#[allow(clippy::should_panic_without_expect)]
fn from_unix_time_with_too_big_subsec_nanos() {
let _ = FileTime::from_unix_time(i64::default(), NANOS_PER_SEC).unwrap();
}
Expand Down
1 change: 0 additions & 1 deletion src/serde_with/unix_time/microseconds/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ mod tests {
prop_assume!((-11_644_473_600_000_000..=1_833_029_933_770_955_161).contains(&ts));
}

#[allow(clippy::option_if_let_else)]
let json = if let Some(ts) = timestamp {
format!(r#"{{"time":{ts}}}"#)
} else {
Expand Down
1 change: 0 additions & 1 deletion src/serde_with/unix_time/milliseconds/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ mod tests {
prop_assume!((-11_644_473_600_000..=1_833_029_933_770_955).contains(&ts));
}

#[allow(clippy::option_if_let_else)]
let json = if let Some(ts) = timestamp {
format!(r#"{{"time":{ts}}}"#)
} else {
Expand Down
1 change: 0 additions & 1 deletion src/serde_with/unix_time/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ mod tests {
prop_assume!((-11_644_473_600..=1_833_029_933_770).contains(&ts));
}

#[allow(clippy::option_if_let_else)]
let json = if let Some(ts) = timestamp {
format!(r#"{{"time":{ts}}}"#)
} else {
Expand Down

0 comments on commit 90ffc0c

Please sign in to comment.