summaryrefslogtreecommitdiff
path: root/src/geom/length.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-19 21:23:03 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-19 21:23:03 +0100
commit898dc38ec153709929d2513fb9d040dd2c1ce0fe (patch)
tree11742165476f2c2595df91841808de3567b7c876 /src/geom/length.rs
parent264a7dedd42e27cd9e604037640cf0594b2ec46b (diff)
Better debug representations 💻
Diffstat (limited to 'src/geom/length.rs')
-rw-r--r--src/geom/length.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/geom/length.rs b/src/geom/length.rs
index bc836810..419da5c3 100644
--- a/src/geom/length.rs
+++ b/src/geom/length.rs
@@ -120,7 +120,8 @@ impl Display for Length {
impl Debug for Length {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
- Display::fmt(self, f)
+ let unit = LengthUnit::Pt;
+ write!(f, "{}{}", self.to_unit(unit), unit)
}
}