summaryrefslogtreecommitdiff
path: root/src/syntax/span.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/span.rs')
-rw-r--r--src/syntax/span.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/syntax/span.rs b/src/syntax/span.rs
index 3be770b8..e924b03b 100644
--- a/src/syntax/span.rs
+++ b/src/syntax/span.rs
@@ -269,14 +269,14 @@ impl Location {
}
}
-impl Debug for Location {
+impl Display for Location {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
- Display::fmt(self, f)
+ write!(f, "{}:{}", self.line, self.column)
}
}
-impl Display for Location {
+impl Debug for Location {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
- write!(f, "{}:{}", self.line, self.column)
+ Display::fmt(self, f)
}
}