Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Nov 24, 2023
1 parent a8c610c commit 0e1f5bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/src/date/day.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ mod tests {
use super::*;

#[test]
#[should_panic]
#[should_panic(expected = "day value 0 is out of range")]
fn day_0() {
Day::new(0);
}

#[test]
#[should_panic]
#[should_panic(expected = "day value 32 is out of range")]
fn day_32() {
Day::new(32);
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/date/year.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mod tests {
use super::*;

#[test]
#[should_panic]
#[should_panic(expected = "year 0 is invalid")]
fn year_0() {
Year::new(0);
}
Expand Down

0 comments on commit 0e1f5bc

Please sign in to comment.