summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream/writer/writer_deflate.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-08 10:34:21 +0100
committerAzul <azul@riseup.net>2020-12-08 12:51:56 +0100
commit96dfdae428197dd180cf10cff54b96ce8bc35d7b (patch)
tree8d57c13921fdbc95bd3e0438e496d240a42676f2 /openpgp/src/serialize/stream/writer/writer_deflate.rs
parent6f77fb84cec4d3d62d3885ce6270919bc81419dc (diff)
openpgp: Add assert_send_and_sync! for more types.
- All types that are `Send` and `Sync` are checked now. - Fixes #627.
Diffstat (limited to 'openpgp/src/serialize/stream/writer/writer_deflate.rs')
-rw-r--r--openpgp/src/serialize/stream/writer/writer_deflate.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/serialize/stream/writer/writer_deflate.rs b/openpgp/src/serialize/stream/writer/writer_deflate.rs
index 92226302..27b4bd6b 100644
--- a/openpgp/src/serialize/stream/writer/writer_deflate.rs
+++ b/openpgp/src/serialize/stream/writer/writer_deflate.rs
@@ -10,6 +10,7 @@ use super::{Generic, Message, BoxStack, Stackable, Cookie};
pub struct ZIP<'a, C: 'a> {
inner: Generic<DeflateEncoder<BoxStack<'a, C>>, C>,
}
+assert_send_and_sync!(ZIP<'_, C>, C);
impl<'a> ZIP<'a, Cookie> {
/// Makes a ZIP compressing writer.
@@ -78,6 +79,7 @@ impl<'a, C: 'a> Stackable<'a, C> for ZIP<'a, C> {
pub struct ZLIB<'a, C: 'a> {
inner: Generic<ZlibEncoder<BoxStack<'a, C>>, C>,
}
+assert_send_and_sync!(ZLIB<'_, C>, C);
impl<'a> ZLIB<'a, Cookie> {
/// Makes a ZLIB compressing writer.