Skip to content

Commit 15611f7

Browse files
committed
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.
2 parents 463e427 + 403fc41 commit 15611f7

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)