summaryrefslogtreecommitdiffstats
path: root/buffered-reader/src/adapter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'buffered-reader/src/adapter.rs')
-rw-r--r--buffered-reader/src/adapter.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/buffered-reader/src/adapter.rs b/buffered-reader/src/adapter.rs
index 7b620a2b..65c7a8aa 100644
--- a/buffered-reader/src/adapter.rs
+++ b/buffered-reader/src/adapter.rs
@@ -16,6 +16,11 @@ pub struct Adapter<T: BufferedReader<B>, B: fmt::Debug, C: fmt::Debug> {
cookie: C,
}
+assert_send_and_sync!(Adapter<T, B, C>
+ where T: BufferedReader<B>,
+ B: fmt::Debug,
+ C: fmt::Debug);
+
impl<T: BufferedReader<B>, B: fmt::Debug, C: fmt::Debug> fmt::Display for Adapter<T, B, C> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("Adapter").finish()