From 418f710253baa1ced1d7453c5f1a5d41bcedf97d Mon Sep 17 00:00:00 2001 From: Hlars Date: Thu, 7 Aug 2025 17:23:46 +0200 Subject: [PATCH] added Clone for HolidayChecker --- src/countries/de.rs | 2 +- src/countries/fr.rs | 2 +- src/countries/us.rs | 2 +- src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/countries/de.rs b/src/countries/de.rs index 64f5d80..596dd74 100644 --- a/src/countries/de.rs +++ b/src/countries/de.rs @@ -6,7 +6,7 @@ use crate::{ utils::{self}, }; -#[derive(Debug)] +#[derive(Debug, Clone)] pub(crate) struct GermanHolidays(pub Vec>); /// Enum representing the states in Germany for holiday checking. diff --git a/src/countries/fr.rs b/src/countries/fr.rs index 6dc93be..8cd272f 100644 --- a/src/countries/fr.rs +++ b/src/countries/fr.rs @@ -6,7 +6,7 @@ use crate::{ utils, }; -#[derive(Debug)] +#[derive(Debug, Clone)] pub(crate) struct FrenchHolidays(pub Vec>); /// Enum representing the states in France for holiday checking. diff --git a/src/countries/us.rs b/src/countries/us.rs index c33da83..f6fa4f0 100644 --- a/src/countries/us.rs +++ b/src/countries/us.rs @@ -6,7 +6,7 @@ use crate::{ utils, }; -#[derive(Debug)] +#[derive(Debug, Clone)] pub(crate) struct USHolidays(pub Vec>); /// Enum representing the states in The United States of America for holiday checking. diff --git a/src/lib.rs b/src/lib.rs index 1fbcdc4..0b3cd0e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,7 @@ pub(crate) mod utils; pub use countries::{CountryState, de::GermanState, fr::FrenchState, us::USState}; -#[derive(Debug)] +#[derive(Debug, Clone)] /// Struct for checking holidays in different countries. /// /// The `HolidayChecker` struct provides methods to check holidays for Germany, the United States, and France.