]> git.lizzy.rs Git - rust.git/commitdiff
Removed write_fmt forwarding, to fix recursive borrow issues
authorNathan West <Lucretiel@gmail.com>
Wed, 17 Jun 2020 21:56:25 +0000 (17:56 -0400)
committerNathan West <Lucretiel@gmail.com>
Wed, 17 Jun 2020 21:56:25 +0000 (17:56 -0400)
src/libstd/io/stdio.rs

index cce9a0dc7a43b4444a3ed2a0fb50d3cc8ca89a31..b41f0c2f82d0d39c6db9097bf9070de61bd2e693 100644 (file)
@@ -652,9 +652,6 @@ fn flush(&mut self) -> io::Result<()> {
     fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
         self.lock().write_all(buf)
     }
-    fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> io::Result<()> {
-        self.lock().write_fmt(args)
-    }
     fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
         self.lock().write_all_vectored(bufs)
     }
@@ -680,9 +677,6 @@ fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
     fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
         self.inner.borrow_mut().write_all_vectored(bufs)
     }
-    fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> {
-        self.inner.borrow_mut().write_fmt(fmt)
-    }
 }
 
 #[stable(feature = "std_debug", since = "1.16.0")]
@@ -838,9 +832,6 @@ fn flush(&mut self) -> io::Result<()> {
     fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
         self.lock().write_all(buf)
     }
-    fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> io::Result<()> {
-        self.lock().write_fmt(args)
-    }
     fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
         self.lock().write_all_vectored(bufs)
     }
@@ -866,9 +857,6 @@ fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
     fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
         self.inner.borrow_mut().write_all_vectored(bufs)
     }
-    fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> {
-        self.inner.borrow_mut().write_fmt(fmt)
-    }
 }
 
 #[stable(feature = "std_debug", since = "1.16.0")]