diff options
Diffstat (limited to 'buffered-reader/src/adapter.rs')
-rw-r--r-- | buffered-reader/src/adapter.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/buffered-reader/src/adapter.rs b/buffered-reader/src/adapter.rs index 59a85dd2..7b620a2b 100644 --- a/buffered-reader/src/adapter.rs +++ b/buffered-reader/src/adapter.rs @@ -9,6 +9,7 @@ use super::*; /// Generic::with_cookie(b, _)`, but that introduces buffering. This /// `Adapter` also changes cookie types, but does no buffering of its /// own. +#[derive(Debug)] pub struct Adapter<T: BufferedReader<B>, B: fmt::Debug, C: fmt::Debug> { reader: T, _ghostly_cookie: std::marker::PhantomData<B>, @@ -21,14 +22,6 @@ impl<T: BufferedReader<B>, B: fmt::Debug, C: fmt::Debug> fmt::Display for Adapte } } -impl<T: BufferedReader<B>, B: fmt::Debug, C: fmt::Debug> fmt::Debug for Adapter<T, B, C> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.debug_struct("Adapter") - .field("reader", &self.reader) - .finish() - } -} - impl<T: BufferedReader<B>, B: fmt::Debug> Adapter<T, B, ()> { /// Instantiates a new adapter. /// |