summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/amalgamation.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-12-08 17:40:11 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-12-08 17:40:11 +0100
commit12741c1d0e8b0801f6dfb5963efabef069236ffd (patch)
tree13ba49beae14e31ab0b323d8a52d6464f86b30fd /openpgp/src/cert/amalgamation.rs
parent2a82a8d796caa1fec466c7e9d8b7f4868a7665a5 (diff)
openpgp: Tweak the assert_send_and_sync macro.
- Declare trait bounds using a where clause. It looks a bit odd if there is no bound, but not worse than before.
Diffstat (limited to 'openpgp/src/cert/amalgamation.rs')
-rw-r--r--openpgp/src/cert/amalgamation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs
index 91328528..78efb4cc 100644
--- a/openpgp/src/cert/amalgamation.rs
+++ b/openpgp/src/cert/amalgamation.rs
@@ -647,7 +647,7 @@ pub struct ComponentAmalgamation<'a, C> {
cert: &'a Cert,
bundle: &'a ComponentBundle<C>,
}
-assert_send_and_sync!(ComponentAmalgamation<'_, C>, C);
+assert_send_and_sync!(ComponentAmalgamation<'_, C> where C);
/// A User ID and its associated data.
///
@@ -1078,7 +1078,7 @@ pub struct ValidComponentAmalgamation<'a, C> {
// The binding signature at time `time`. (This is just a cache.)
binding_signature: &'a Signature,
}
-assert_send_and_sync!(ValidComponentAmalgamation<'_, C>, C);
+assert_send_and_sync!(ValidComponentAmalgamation<'_, C> where C);
/// A Valid User ID and its associated data.
///