summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/amalgamation
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-07 16:11:52 +0100
committerAzul <azul@riseup.net>2020-12-08 10:36:04 +0100
commit88df27d0ae174b87e980371c5600d470516ed116 (patch)
tree76cd51f47ab8b94b1cd20149d3b328946fc34c3a /openpgp/src/cert/amalgamation
parentb956d36cb50cac28aa9da0e373fb33c9a4c120af (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/cert/amalgamation')
-rw-r--r--openpgp/src/cert/amalgamation/iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/cert/amalgamation/iter.rs b/openpgp/src/cert/amalgamation/iter.rs
index 7af884d3..9e01911c 100644
--- a/openpgp/src/cert/amalgamation/iter.rs
+++ b/openpgp/src/cert/amalgamation/iter.rs
@@ -90,7 +90,7 @@ pub struct ComponentAmalgamationIter<'a, C> {
cert: &'a Cert,
iter: slice::Iter<'a, ComponentBundle<C>>,
}
-assert_send_and_sync!{ComponentAmalgamationIter<'a, UserID>, 'a}
+assert_send_and_sync!{ComponentAmalgamationIter<'_, C>, C}
/// An iterator over `UserIDAmalgamtion`s.
///