Don't forward fmt config to subformats

The configs aren't supposed to apply recursively
This commit is contained in:
Steven Fackler
2014-06-16 22:05:27 -07:00
parent c2f8cb6489
commit 492d2370a2

View File

@@ -367,12 +367,12 @@ impl<T: fmt::Show> fmt::Show for Range<T> {
Empty => write!(fmt, "empty"),
Normal(ref lower, ref upper) => {
match *lower {
Some(ref bound) => try!(bound.fmt(fmt)),
Some(ref bound) => try!(write!(fmt, "{}", bound)),
None => try!(write!(fmt, "(")),
}
try!(write!(fmt, ","));
match *upper {
Some(ref bound) => bound.fmt(fmt),
Some(ref bound) => write!(fmt, "{}", bound),
None => write!(fmt, ")"),
}
}