summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/symmetric.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/crypto/symmetric.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/crypto/symmetric.rs')
-rw-r--r--openpgp/src/crypto/symmetric.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/symmetric.rs b/openpgp/src/crypto/symmetric.rs
index 0030b2d4..0a022cc3 100644
--- a/openpgp/src/crypto/symmetric.rs
+++ b/openpgp/src/crypto/symmetric.rs
@@ -51,7 +51,7 @@ pub struct Decryptor<R: io::Read> {
// Up to a block of unread data.
buffer: Vec<u8>,
}
-assert_send_and_sync!(Decryptor<R>, R: io::Read);
+assert_send_and_sync!(Decryptor<R> where R: io::Read);
impl<R: io::Read> Decryptor<R> {
/// Instantiate a new symmetric decryptor. `reader` is the source
@@ -318,7 +318,7 @@ pub struct Encryptor<W: io::Write> {
// A place to write encrypted data into.
scratch: Vec<u8>,
}
-assert_send_and_sync!(Encryptor<W>, W: io::Write);
+assert_send_and_sync!(Encryptor<W> where W: io::Write);
impl<W: io::Write> Encryptor<W> {
/// Instantiate a new symmetric encryptor.