commit 5c5f5e73feef74d021e878ce09b8ead1141ab840
parent 13ad855b3810fa731f8bb1449542b2f2a4c7129e
Author: Demonstrandum <moi@knutsen.co>
Date: Sat, 13 Jun 2020 17:17:06 +0100
Fix some debug feature code.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/syntax/token.rs b/src/syntax/token.rs
@@ -121,8 +121,9 @@ impl fmt::Display for Token {
class=self.class, rep=escaped,
spaces1=" ".repeat(12 - self.class.to_string().width()),
spaces2=" ".repeat(30 - escaped.width()),
- l=self.location.line, c=self.location.col,
- span=self.location.span)
+ l=self.location.location.line.unwrap(),
+ c=self.location.location.line.unwrap(),
+ span=self.location.location.columns.unwrap())
}
}