summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/mod.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/packet/mod.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/packet/mod.rs')
-rw-r--r--openpgp/src/packet/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/mod.rs b/openpgp/src/packet/mod.rs
index 45ef3d3c..d426cc35 100644
--- a/openpgp/src/packet/mod.rs
+++ b/openpgp/src/packet/mod.rs
@@ -1440,7 +1440,7 @@ pub enum Key<P: key::KeyParts, R: key::KeyRole> {
/// A version 4 `Key` packet.
V4(Key4<P, R>),
}
-assert_send_and_sync!(Key<P, R>, P: key::KeyParts, R: key::KeyRole);
+assert_send_and_sync!(Key<P, R> where P: key::KeyParts, R: key::KeyRole);
impl<P: key::KeyParts, R: key::KeyRole> fmt::Display for Key<P, R> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {