]> git.lizzy.rs Git - rust.git/commitdiff
Restore some write_fmts
authorNathan West <Lucretiel@gmail.com>
Wed, 17 Jun 2020 23:48:51 +0000 (19:48 -0400)
committerNathan West <Lucretiel@gmail.com>
Wed, 17 Jun 2020 23:48:51 +0000 (19:48 -0400)
src/libstd/io/stdio.rs

index b41f0c2f82d0d39c6db9097bf9070de61bd2e693..d6b7ad6254a8cba2cad3a43bfe8f5e3f7c5e0599 100644 (file)
@@ -655,6 +655,9 @@ fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
     fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
         self.lock().write_all_vectored(bufs)
     }
+    fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> io::Result<()> {
+        self.lock().write_fmt(args)
+    }
 }
 #[stable(feature = "rust1", since = "1.0.0")]
 impl Write for StdoutLock<'_> {
@@ -835,6 +838,9 @@ fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
     fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
         self.lock().write_all_vectored(bufs)
     }
+    fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> io::Result<()> {
+        self.lock().write_fmt(args)
+    }
 }
 #[stable(feature = "rust1", since = "1.0.0")]
 impl Write for StderrLock<'_> {