Skip to content

Commit 403fc41

Browse files
committed
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.
1 parent 4b2c703 commit 403fc41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/fmt/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ pub trait Write {
121121
self.0.write_str(s)
122122
}
123123

124+
fn write_char(&mut self, c: char) -> Result {
125+
self.0.write_char(c)
126+
}
127+
124128
fn write_fmt(&mut self, args: Arguments) -> Result {
125129
self.0.write_fmt(args)
126130
}

0 commit comments

Comments
 (0)