From 05a6ce68cf18a01274cef211b080a7170c7c1a1f Mon Sep 17 00:00:00 2001 From: DSeeLP <46624152+DSeeLP@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:09:37 +0200 Subject: [PATCH] Derive `PartialEq`,`Eq`,`Hash`,`Copy` and `Clone` on `NaiveWeek` --- src/naive/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/naive/mod.rs b/src/naive/mod.rs index 2e7d6fd1d..83ab69c4c 100644 --- a/src/naive/mod.rs +++ b/src/naive/mod.rs @@ -29,7 +29,7 @@ pub use self::internals::YearFlags as __BenchYearFlags; /// A week represented by a [`NaiveDate`] and a [`Weekday`] which is the first /// day of the week. -#[derive(Debug)] +#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] pub struct NaiveWeek { date: NaiveDate, start: Weekday,