diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-12-08 17:40:11 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-12-08 17:40:11 +0100 |
commit | 12741c1d0e8b0801f6dfb5963efabef069236ffd (patch) | |
tree | 13ba49beae14e31ab0b323d8a52d6464f86b30fd /openpgp/src/serialize/stream/writer/writer_bzip2.rs | |
parent | 2a82a8d796caa1fec466c7e9d8b7f4868a7665a5 (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/serialize/stream/writer/writer_bzip2.rs')
-rw-r--r-- | openpgp/src/serialize/stream/writer/writer_bzip2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/stream/writer/writer_bzip2.rs b/openpgp/src/serialize/stream/writer/writer_bzip2.rs index b38d8f7e..7db8cf89 100644 --- a/openpgp/src/serialize/stream/writer/writer_bzip2.rs +++ b/openpgp/src/serialize/stream/writer/writer_bzip2.rs @@ -10,7 +10,7 @@ use super::{Generic, Message, BoxStack, Stackable, Cookie}; pub struct BZ<'a, C: 'a> { inner: Generic<BzEncoder<BoxStack<'a, C>>, C>, } -assert_send_and_sync!(BZ<'_, C>, C); +assert_send_and_sync!(BZ<'_, C> where C); impl<'a> BZ<'a, Cookie> { /// Makes a BZ compressing writer. |