Restore some write_fmts
This commit is contained in:
parent
b60cefee0a
commit
14d385bede
1 changed files with 6 additions and 0 deletions
|
|
@ -655,6 +655,9 @@ impl Write for Stdout {
|
|||
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 @@ impl Write for Stderr {
|
|||
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<'_> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue