Skip to content

Commit 1204a49

Browse files
committed
Override Write::write_fmt
1 parent b086bed commit 1204a49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,10 @@ where
11191119
for_both!(*self, ref mut inner => inner.write_all(buf))
11201120
}
11211121

1122+
fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> {
1123+
for_both!(*self, ref mut inner => inner.write_fmt(fmt))
1124+
}
1125+
11221126
fn flush(&mut self) -> io::Result<()> {
11231127
for_both!(*self, ref mut inner => inner.flush())
11241128
}

0 commit comments

Comments
 (0)