aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/util/range.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/util/range.rs')
-rw-r--r--src/components/util/range.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/util/range.rs b/src/components/util/range.rs
index c256ce3d1c8..59e29876909 100644
--- a/src/components/util/range.rs
+++ b/src/components/util/range.rs
@@ -22,9 +22,9 @@ pub struct Range {
priv len: uint
}
-impl fmt::Default for Range {
- fn fmt(obj: &Range, f: &mut fmt::Formatter) {
- write!(f.buf, "[{} .. {})", obj.begin(), obj.end());
+impl fmt::Show for Range {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(f.buf, "[{} .. {})", self.begin(), self.end())
}
}