summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-31 16:25:12 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-31 16:25:12 +0200
commit7f48e8fe6668c5b2fdc62cc70e6bcffb744f411c (patch)
tree6ec437098d9f6df511cfbc0805ac51af288c4eec /src/syntax
parent3481d8cc81a2b3a14118869c7f0ffe204ff3efc8 (diff)
Make user-facing "debug" representation use Debug instead of Display
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/pretty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/pretty.rs b/src/syntax/pretty.rs
index 3c59914f..39f0676b 100644
--- a/src/syntax/pretty.rs
+++ b/src/syntax/pretty.rs
@@ -223,8 +223,8 @@ impl Pretty for Lit {
Self::Bool(_, v) => write!(p, "{}", v).unwrap(),
Self::Int(_, v) => write!(p, "{}", v).unwrap(),
Self::Float(_, v) => write!(p, "{}", v).unwrap(),
- Self::Length(_, v, u) => write!(p, "{}{}", v, u).unwrap(),
- Self::Angle(_, v, u) => write!(p, "{}{}", v, u).unwrap(),
+ Self::Length(_, v, u) => write!(p, "{}{:?}", v, u).unwrap(),
+ Self::Angle(_, v, u) => write!(p, "{}{:?}", v, u).unwrap(),
Self::Percent(_, v) => write!(p, "{}%", v).unwrap(),
Self::Fractional(_, v) => write!(p, "{}fr", v).unwrap(),
Self::Str(_, v) => write!(p, "{:?}", v).unwrap(),