summaryrefslogtreecommitdiffstats
path: root/buffered-reader/src/dup.rs
diff options
context:
space:
mode:
Diffstat (limited to 'buffered-reader/src/dup.rs')
-rw-r--r--buffered-reader/src/dup.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/buffered-reader/src/dup.rs b/buffered-reader/src/dup.rs
index 6cb6c70f..afca4296 100644
--- a/buffered-reader/src/dup.rs
+++ b/buffered-reader/src/dup.rs
@@ -10,6 +10,7 @@ use super::*;
/// Note: this will likely cause the underlying stream to buffer as
/// much data as you read. Thus, it should only be used for peeking
/// at the underlying `BufferedReader`.
+#[derive(Debug)]
pub struct Dup<T: BufferedReader<C>, C: fmt::Debug> {
reader: T,
@@ -28,15 +29,6 @@ impl<T: BufferedReader<C>, C: fmt::Debug> fmt::Display for Dup<T, C> {
}
}
-impl<T: BufferedReader<C>, C: fmt::Debug> fmt::Debug for Dup<T, C> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.debug_struct("Dup")
- .field("cursor", &self.cursor)
- .field("reader", &self.reader)
- .finish()
- }
-}
-
impl<T: BufferedReader<()>> Dup<T, ()> {
/// Instantiates a new `Dup` buffered reader.
///