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:
commit
15611f75ca
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user