From b956d36cb50cac28aa9da0e373fb33c9a4c120af Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 4 Dec 2020 20:06:17 +0100 Subject: openpgp: Ensure public types are Send and Sync. - See #627. --- openpgp/src/types/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openpgp/src/types/mod.rs') diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs index 4fd25e50..630cbd9a 100644 --- a/openpgp/src/types/mod.rs +++ b/openpgp/src/types/mod.rs @@ -71,6 +71,9 @@ mod timestamp; pub use timestamp::{Timestamp, Duration}; pub(crate) use timestamp::normalize_systemtime; +pub(crate) trait Sendable : Send {} +pub(crate) trait Syncable : Sync {} + /// The OpenPGP public key algorithms as defined in [Section 9.1 of /// RFC 4880], and [Section 5 of RFC 6637]. /// -- cgit v1.2.3