]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/io/impls.rs
Remove io::LocalOutput and use Arc<Mutex<dyn>> for local streams.
[rust.git] / library / std / src / io / impls.rs
index 66426101d278e3894232116b70633ce51dd40899..6b3c86cb0df87ae176a17ecc30841279ed8aa241 100644 (file)
@@ -209,20 +209,6 @@ fn read_line(&mut self, buf: &mut String) -> io::Result<usize> {
     }
 }
 
-// Used by panicking::default_hook
-#[cfg(test)]
-/// This impl is only used by printing logic, so any error returned is always
-/// of kind `Other`, and should be ignored.
-impl Write for dyn ::realstd::io::LocalOutput {
-    fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
-        (*self).write(buf).map_err(|_| ErrorKind::Other.into())
-    }
-
-    fn flush(&mut self) -> io::Result<()> {
-        (*self).flush().map_err(|_| ErrorKind::Other.into())
-    }
-}
-
 // =============================================================================
 // In-memory buffer implementations