diff options
Diffstat (limited to 'buffered-reader/src/limitor.rs')
-rw-r--r-- | buffered-reader/src/limitor.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/buffered-reader/src/limitor.rs b/buffered-reader/src/limitor.rs index 619c8d3e..369c9f11 100644 --- a/buffered-reader/src/limitor.rs +++ b/buffered-reader/src/limitor.rs @@ -5,6 +5,7 @@ use super::*; /// Limits the amount of data that can be read from a /// `BufferedReader`. +#[derive(Debug)] pub struct Limitor<T: BufferedReader<C>, C: fmt::Debug> { reader: T, limit: u64, @@ -20,15 +21,6 @@ impl<T: BufferedReader<C>, C: fmt::Debug> fmt::Display for Limitor<T, C> { } } -impl<T: BufferedReader<C>, C: fmt::Debug> fmt::Debug for Limitor<T, C> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.debug_struct("Limitor") - .field("limit", &self.limit) - .field("reader", &self.reader) - .finish() - } -} - impl<T: BufferedReader<()>> Limitor<T, ()> { /// Instantiates a new limitor. /// |