Skip to content

Commit

Permalink
Override Write::write_fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jul 26, 2022
1 parent b086bed commit 1204a49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,10 @@ where
for_both!(*self, ref mut inner => inner.write_all(buf))
}

fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> {
for_both!(*self, ref mut inner => inner.write_fmt(fmt))
}

fn flush(&mut self) -> io::Result<()> {
for_both!(*self, ref mut inner => inner.flush())
}
Expand Down

0 comments on commit 1204a49

Please sign in to comment.