Skip to content

Commit

Permalink
make Stream impl Send and Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Jan 12, 2016
1 parent 1e01345 commit a980e70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ pub struct Stream<D: Direction> {
_marker: marker::PhantomData<D>,
}

unsafe impl<D: Direction> marker::Send for Stream<D> {}
unsafe impl<D: Direction> marker::Sync for Stream<D> {}

pub enum Compress {}
pub enum Decompress {}

Expand Down

0 comments on commit a980e70

Please sign in to comment.