diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-04 21:29:15 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-04 21:29:15 +0100 |
| commit | 2e77b1c836220766398e379ae0157736fb448874 (patch) | |
| tree | 70fc7d28f44193f26d880b5315ce55ed951af73c /src/syntax | |
| parent | 77c06ebc24ab3a43dc2268763ff8f10963f875b4 (diff) | |
Better value representations, type function 🌐
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/span.rs | 8 |
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) } } |
