Skip to content

Commit

Permalink
Allow bool assert comparisons in test.
Browse files Browse the repository at this point in the history
It's a matter of taste, be I find a list of assert_eq! statements to be clearer here.
  • Loading branch information
Arjan committed Nov 8, 2024
1 parent 7a3e8a5 commit 130126c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/offset/local/tz_info/timezone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@ mod tests {
}

#[test]
#[allow(clippy::bool_assert_comparison)]
fn test_dst_backward_posix_tz() -> Result<(), Error> {
// Northern hemisphere DST (CET/CEST)
let tz: TimeZone = TimeZone::from_posix_tz("CET-1CEST,M3.5.0,M10.5.0/3")?;
Expand Down Expand Up @@ -996,6 +997,7 @@ mod tests {
}

#[test]
#[allow(clippy::bool_assert_comparison)]
fn test_dst_backward_tzfile() -> Result<(), Error> {
// Northern hemisphere DST (CET/CEST)
let data: [u8; 604] = [
Expand Down

0 comments on commit 130126c

Please sign in to comment.