diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-03-19 21:23:03 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-03-19 21:23:03 +0100 |
| commit | 898dc38ec153709929d2513fb9d040dd2c1ce0fe (patch) | |
| tree | 11742165476f2c2595df91841808de3567b7c876 /src/geom/length.rs | |
| parent | 264a7dedd42e27cd9e604037640cf0594b2ec46b (diff) | |
Better debug representations 💻
Diffstat (limited to 'src/geom/length.rs')
| -rw-r--r-- | src/geom/length.rs | 3 |
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) } } |
