Skip to content

Commit 492d237

Browse files
committed
Don't forward fmt config to subformats
The configs aren't supposed to apply recursively
1 parent c2f8cb6 commit 492d237

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/types/range.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@ impl<T: fmt::Show> fmt::Show for Range<T> {
367367
Empty => write!(fmt, "empty"),
368368
Normal(ref lower, ref upper) => {
369369
match *lower {
370-
Some(ref bound) => try!(bound.fmt(fmt)),
370+
Some(ref bound) => try!(write!(fmt, "{}", bound)),
371371
None => try!(write!(fmt, "(")),
372372
}
373373
try!(write!(fmt, ","));
374374
match *upper {
375-
Some(ref bound) => bound.fmt(fmt),
375+
Some(ref bound) => write!(fmt, "{}", bound),
376376
None => write!(fmt, ")"),
377377
}
378378
}

0 commit comments

Comments
 (0)