We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2f8cb6 commit 492d237Copy full SHA for 492d237
1 file changed
src/types/range.rs
@@ -367,12 +367,12 @@ impl<T: fmt::Show> fmt::Show for Range<T> {
367
Empty => write!(fmt, "empty"),
368
Normal(ref lower, ref upper) => {
369
match *lower {
370
- Some(ref bound) => try!(bound.fmt(fmt)),
+ Some(ref bound) => try!(write!(fmt, "{}", bound)),
371
None => try!(write!(fmt, "(")),
372
}
373
try!(write!(fmt, ","));
374
match *upper {
375
- Some(ref bound) => bound.fmt(fmt),
+ Some(ref bound) => write!(fmt, "{}", bound),
376
None => write!(fmt, ")"),
377
378
0 commit comments