function was not good alligned and removed as_any() and as_any_mut() from output
This commit is contained in:
parent
0eba0e2056
commit
e0b0e232ea
@ -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 {
|
||||
|
@ -32,7 +32,4 @@ trait IStdout {
|
||||
fn write(&self, buf: &[u8]) -> io::Result<usize>;
|
||||
/// Flush the current output.
|
||||
fn flush(&self) -> io::Result<()>;
|
||||
|
||||
fn as_any(&self) -> &Any;
|
||||
fn as_any_mut(&mut self) -> &mut Any;
|
||||
}
|
||||
|
@ -67,13 +67,6 @@ impl TerminalOutput {
|
||||
pub fn write_buf(&self, buf: &[u8]) -> io::Result<usize> {
|
||||
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
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user