From a980e7067a626c3e9df8d13fd91885dde9220836 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Mon, 11 Jan 2016 11:36:34 +0100 Subject: [PATCH] make Stream impl Send and Sync --- src/stream.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stream.rs b/src/stream.rs index ee599e65e..82a9400cd 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -12,6 +12,9 @@ pub struct Stream { _marker: marker::PhantomData, } +unsafe impl marker::Send for Stream {} +unsafe impl marker::Sync for Stream {} + pub enum Compress {} pub enum Decompress {}