diff --git a/src/modules/output/ansi_output.rs b/src/modules/output/ansi_output.rs index 33a7194..13a9ee6 100644 --- a/src/modules/output/ansi_output.rs +++ b/src/modules/output/ansi_output.rs @@ -13,7 +13,7 @@ pub struct AnsiOutput { } impl IStdout for AnsiOutput { - fn write_str(&self, string: &str) -> io::Result { + fn write_str(&self, string: &str) -> io::Result { let out = &self.handle; let mut handle = out.lock(); let amt = handle.write(string.as_bytes())?; @@ -32,14 +32,6 @@ impl IStdout for AnsiOutput { let mut handle = out.lock(); handle.flush() } - - fn as_any(&self) -> &Any { - self - } - - fn as_any_mut(&mut self) -> &mut Any { - self - } } impl AnsiOutput { diff --git a/src/modules/output/mod.rs b/src/modules/output/mod.rs index 9a8d7b2..4e62d9f 100644 --- a/src/modules/output/mod.rs +++ b/src/modules/output/mod.rs @@ -32,7 +32,4 @@ trait IStdout { fn write(&self, buf: &[u8]) -> io::Result; /// Flush the current output. fn flush(&self) -> io::Result<()>; - - fn as_any(&self) -> &Any; - fn as_any_mut(&mut self) -> &mut Any; } diff --git a/src/modules/output/output.rs b/src/modules/output/output.rs index 57b81e9..a839ac3 100644 --- a/src/modules/output/output.rs +++ b/src/modules/output/output.rs @@ -67,13 +67,6 @@ impl TerminalOutput { pub fn write_buf(&self, buf: &[u8]) -> io::Result { self.stdout.write(buf) } - - pub fn as_any(&self) -> &Any { - self.stdout.as_any() - } - pub fn as_any_mut(&mut self) -> &mut Any { - self.stdout.as_any_mut() - } } impl Default for TerminalOutput diff --git a/src/modules/output/winapi_output.rs b/src/modules/output/winapi_output.rs index c139e77..c0e0ca8 100644 --- a/src/modules/output/winapi_output.rs +++ b/src/modules/output/winapi_output.rs @@ -33,14 +33,6 @@ impl IStdout for WinApiOutput { fn flush(&self) -> io::Result<()> { Ok(()) } - - fn as_any(&self) -> &Any { - self - } - - fn as_any_mut(&mut self) -> &mut Any { - self - } } unsafe impl Send for WinApiOutput {}