summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-04 21:29:15 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-04 21:29:15 +0100
commit2e77b1c836220766398e379ae0157736fb448874 (patch)
tree70fc7d28f44193f26d880b5315ce55ed951af73c /src/syntax
parent77c06ebc24ab3a43dc2268763ff8f10963f875b4 (diff)
Better value representations, type function 🌐
Diffstat (limited to 'src/syntax')
-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)
}
}