From 0064d3443a67c2f50e462e6c2339505463980d8e Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 22 Jun 2022 22:01:07 +0200 Subject: [PATCH] derive Clone for DateTime (#23) This might be useful for `struct`s that want to store a `DateTime` while also deriving `Clone` themself. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2780409..e039cc3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -779,7 +779,7 @@ pub struct ContentType<'x> { } /// An RFC5322 datetime. -#[derive(Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq, Eq)] #[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))] pub struct DateTime { pub year: u32,