fmt: Make sure write_fmt's implementation can use write_char

It looks like the Adapter inside write_fmt was never updated to forward
the write_char method.
This commit is contained in:
Ulrik Sverdrup 2016-02-17 22:25:22 +01:00
parent 4b2c7030fd
commit 403fc4186e

View file

@ -121,6 +121,10 @@ pub trait Write {
self.0.write_str(s)
}
fn write_char(&mut self, c: char) -> Result {
self.0.write_char(c)
}
fn write_fmt(&mut self, args: Arguments) -> Result {
self.0.write_fmt(args)
}