From 0e1f5bcfcbf729ccd76b39c8cb48eb264bd6932f Mon Sep 17 00:00:00 2001 From: printfn Date: Fri, 24 Nov 2023 23:00:40 +0000 Subject: [PATCH] Fix clippy warnings --- core/src/date/day.rs | 4 ++-- core/src/date/year.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/date/day.rs b/core/src/date/day.rs index 05ca27b8..1ea281f9 100644 --- a/core/src/date/day.rs +++ b/core/src/date/day.rs @@ -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); } diff --git a/core/src/date/year.rs b/core/src/date/year.rs index 94278e09..b1e871ec 100644 --- a/core/src/date/year.rs +++ b/core/src/date/year.rs @@ -101,7 +101,7 @@ mod tests { use super::*; #[test] - #[should_panic] + #[should_panic(expected = "year 0 is invalid")] fn year_0() { Year::new(0); }