diff options
author | Azul <azul@riseup.net> | 2020-12-07 16:30:52 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-08 10:36:50 +0100 |
commit | 52794155913ce1fa78ce01a41b29c67e721e9847 (patch) | |
tree | 1d1d5776f8aca2594031916fe9179aa90e41ed8c /openpgp/src/cert.rs | |
parent | 88df27d0ae174b87e980371c5600d470516ed116 (diff) |
openpgp: Require Policies to be Send and Sync.
- This ensures that all types with Policies (`Valid*`) are `Send` and `Sync`.
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r-- | openpgp/src/cert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs index 287d1de9..fb6dedba 100644 --- a/openpgp/src/cert.rs +++ b/openpgp/src/cert.rs @@ -728,7 +728,6 @@ pub struct Cert { bad: Vec<packet::Signature>, } } // doc-hack, see above - assert_send_and_sync!{Cert} impl std::str::FromStr for Cert { @@ -2871,6 +2870,7 @@ pub struct ValidCert<'a> { // The reference time. time: time::SystemTime, } +assert_send_and_sync!{ValidCert<'_>} impl<'a> std::ops::Deref for ValidCert<'a> { type Target = Cert; |