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/policy.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/policy.rs')
-rw-r--r-- | openpgp/src/policy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs index fc74fe59..4920317b 100644 --- a/openpgp/src/policy.rs +++ b/openpgp/src/policy.rs @@ -62,7 +62,7 @@ use cutofflist::{ }; /// A policy for cryptographic operations. -pub trait Policy : fmt::Debug { +pub trait Policy : fmt::Debug + Send + Sync { /// Returns an error if the signature violates the policy. /// /// This function performs the last check before the library |