diff options
Diffstat (limited to 'buffered-reader/src/eof.rs')
-rw-r--r-- | buffered-reader/src/eof.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/buffered-reader/src/eof.rs b/buffered-reader/src/eof.rs index b2db3ec7..7f36e074 100644 --- a/buffered-reader/src/eof.rs +++ b/buffered-reader/src/eof.rs @@ -5,6 +5,7 @@ use std::fmt; use crate::BufferedReader; /// Always returns EOF. +#[derive(Debug)] pub struct EOF<C> { cookie: C, } @@ -16,13 +17,6 @@ impl<C> fmt::Display for EOF<C> { } } -impl<C> fmt::Debug for EOF<C> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.debug_struct("EOF") - .finish() - } -} - impl EOF<()> { /// Instantiates a new `EOF`. pub fn new() -> Self { |