Auto merge of #31736 - bluss:write-char, r=alexcrichton

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:
bors 2016-02-19 08:04:11 +00:00
commit 15611f75ca

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)
}