diff options
author | Azul <azul@riseup.net> | 2020-12-07 16:11:52 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-08 10:36:04 +0100 |
commit | 88df27d0ae174b87e980371c5600d470516ed116 (patch) | |
tree | 76cd51f47ab8b94b1cd20149d3b328946fc34c3a /openpgp/src/serialize/stream.rs | |
parent | b956d36cb50cac28aa9da0e373fb33c9a4c120af (diff) |
openpgp: Allow generic types in assert_send_and_sync!.
- Use generics and the anonmymous lifetime in `assert_send_and_sync!`.
- See 627.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index 762707ec..f77dfee0 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -1799,7 +1799,7 @@ pub struct Recipient<'a> { keyid: KeyID, key: &'a Key<key::PublicParts, key::UnspecifiedRole>, } -assert_send_and_sync!{Recipient<'a>, 'a} +assert_send_and_sync!{Recipient<'_>} impl<'a, P, R> From<&'a Key<P, R>> for Recipient<'a> where P: key::KeyParts, |