diff options
author | Azul <azul@riseup.net> | 2020-12-08 09:29:18 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-08 12:51:56 +0100 |
commit | 6f77fb84cec4d3d62d3885ce6270919bc81419dc (patch) | |
tree | 4102eb7ebfa45ae5a94d705f652a025b4065d5a6 /openpgp/src/serialize/stream.rs | |
parent | 15429e90e6ec1ff1401500f592e8698a89b8cceb (diff) |
openpgp: Use parens for assert_send_and_sync!.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index 0948a242..e69fdd29 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -205,7 +205,7 @@ impl Default for Cookie { /// [`Message::finalize`]: #method.finalize #[derive(Debug)] pub struct Message<'a>(writer::BoxStack<'a, Cookie>); -assert_send_and_sync!{Message<'_>} +assert_send_and_sync!(Message<'_>); impl<'a> Message<'a> { /// Starts streaming an OpenPGP message. @@ -345,7 +345,7 @@ pub struct Armorer<'a> { headers: Vec<(String, String)>, inner: Message<'a>, } -assert_send_and_sync!{Armorer<'_>} +assert_send_and_sync!(Armorer<'_>); impl<'a> Armorer<'a> { /// Creates a new armoring filter. @@ -535,7 +535,7 @@ impl<'a> fmt::Debug for Armorer<'a> { pub struct ArbitraryWriter<'a> { inner: writer::BoxStack<'a, Cookie>, } -assert_send_and_sync!{ArbitraryWriter<'_>} +assert_send_and_sync!(ArbitraryWriter<'_>); impl<'a> ArbitraryWriter<'a> { /// Creates a new writer with the given tag. @@ -646,7 +646,7 @@ pub struct Signer<'a> { cookie: Cookie, position: u64, } -assert_send_and_sync!{Signer<'_>} +assert_send_and_sync!(Signer<'_>); impl<'a> Signer<'a> { /// Creates a signer. @@ -1280,7 +1280,7 @@ pub struct LiteralWriter<'a> { inner: writer::BoxStack<'a, Cookie>, signature_writer: Option<writer::BoxStack<'a, Cookie>>, } -assert_send_and_sync!{LiteralWriter<'_>} +assert_send_and_sync!(LiteralWriter<'_>); impl<'a> LiteralWriter<'a> { /// Creates a new literal writer. @@ -1553,7 +1553,7 @@ pub struct Compressor<'a> { level: CompressionLevel, inner: writer::BoxStack<'a, Cookie>, } -assert_send_and_sync!{Compressor<'_>} +assert_send_and_sync!(Compressor<'_>); impl<'a> Compressor<'a> { /// Creates a new compressor using the default algorithm and @@ -1805,7 +1805,7 @@ pub struct Recipient<'a> { keyid: KeyID, key: &'a Key<key::PublicParts, key::UnspecifiedRole>, } -assert_send_and_sync!{Recipient<'_>} +assert_send_and_sync!(Recipient<'_>); impl<'a, P, R> From<&'a Key<P, R>> for Recipient<'a> where P: key::KeyParts, @@ -2087,7 +2087,7 @@ pub struct Encryptor<'a> { hash: Box<dyn crypto::hash::Digest>, cookie: Cookie, } -assert_send_and_sync!{Encryptor<'_>} +assert_send_and_sync!(Encryptor<'_>); impl<'a> Encryptor<'a> { /// Creates a new encryptor for the given recipients. |