diff options
Diffstat (limited to 'buffered-reader/src/dup.rs')
-rw-r--r-- | buffered-reader/src/dup.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buffered-reader/src/dup.rs b/buffered-reader/src/dup.rs index afca4296..50a9aa26 100644 --- a/buffered-reader/src/dup.rs +++ b/buffered-reader/src/dup.rs @@ -21,6 +21,10 @@ pub struct Dup<T: BufferedReader<C>, C: fmt::Debug> { cookie: C, } +assert_send_and_sync!(Dup<T, C> + where T: BufferedReader<C>, + C: fmt::Debug); + impl<T: BufferedReader<C>, C: fmt::Debug> fmt::Display for Dup<T, C> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("Dup") |