diff options
author | Azul <azul@riseup.net> | 2020-12-08 10:34:21 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-08 12:51:56 +0100 |
commit | 96dfdae428197dd180cf10cff54b96ce8bc35d7b (patch) | |
tree | 8d57c13921fdbc95bd3e0438e496d240a42676f2 /openpgp/src/policy.rs | |
parent | 6f77fb84cec4d3d62d3885ce6270919bc81419dc (diff) |
openpgp: Add assert_send_and_sync! for more types.
- All types that are `Send` and `Sync` are checked now.
- Fixes #627.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r-- | openpgp/src/policy.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs index 2a891fd2..29715451 100644 --- a/openpgp/src/policy.rs +++ b/openpgp/src/policy.rs @@ -911,6 +911,7 @@ pub enum AsymmetricAlgorithm { /// Unknown algorithm. Unknown, } +assert_send_and_sync!(AsymmetricAlgorithm); impl std::fmt::Display for AsymmetricAlgorithm { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |