diff options
Diffstat (limited to 'openpgp/src/types/timestamp.rs')
-rw-r--r-- | openpgp/src/types/timestamp.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs index 33518df7..c34ff1cd 100644 --- a/openpgp/src/types/timestamp.rs +++ b/openpgp/src/types/timestamp.rs @@ -63,6 +63,7 @@ use crate::{ /// [`Timestamp::round_down`]: ../types/struct.Timestamp.html#method.round_down #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Timestamp(u32); +assert_send_and_sync!{Timestamp} impl From<Timestamp> for u32 { fn from(t: Timestamp) -> Self { @@ -280,6 +281,7 @@ impl Arbitrary for Timestamp { /// ``` #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Duration(u32); +assert_send_and_sync!{Duration} impl From<Duration> for u32 { fn from(d: Duration) -> Self { |