summaryrefslogtreecommitdiffstats
path: root/buffered-reader/src/decompress_bzip2.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-12-08 18:15:06 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-12-09 09:47:36 +0100
commita8523c266e9934864fe5d14348122187395a2770 (patch)
treec13927eaf8df09ee91a054fc73bdcaee889d51a6 /buffered-reader/src/decompress_bzip2.rs
parentffda43c082b79f7698152287b8236b6c0c9918ec (diff)
buffered-reader: Assert that all types are Send and Sync.
- See #615.
Diffstat (limited to 'buffered-reader/src/decompress_bzip2.rs')
-rw-r--r--buffered-reader/src/decompress_bzip2.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/buffered-reader/src/decompress_bzip2.rs b/buffered-reader/src/decompress_bzip2.rs
index c0c60653..8902c2af 100644
--- a/buffered-reader/src/decompress_bzip2.rs
+++ b/buffered-reader/src/decompress_bzip2.rs
@@ -13,6 +13,10 @@ pub struct Bzip<R: BufferedReader<C>, C: fmt::Debug> {
reader: Generic<BzDecoder<R>, C>,
}
+assert_send_and_sync!(Bzip<R, C>
+ where R: BufferedReader<C>,
+ C: fmt::Debug);
+
impl <R: BufferedReader<()>> Bzip<R, ()> {
/// Instantiates a new bzip decompression reader.
///