summaryrefslogtreecommitdiff
path: root/src/geom/em.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-06 21:13:59 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-06 22:06:16 +0200
commitfd417da04f7ca4b995de7f6510abafd3e9c31307 (patch)
tree3675529c75ca7363701ac8ea306de2cc1d3cbcb3 /src/geom/em.rs
parent168bdf35bd773e67343c965cb473492cc5cae9e7 (diff)
Improve value casting infrastructure
Diffstat (limited to 'src/geom/em.rs')
-rw-r--r--src/geom/em.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/geom/em.rs b/src/geom/em.rs
index 2c63c81d..8dda9ff6 100644
--- a/src/geom/em.rs
+++ b/src/geom/em.rs
@@ -135,8 +135,9 @@ impl Sum for Em {
}
}
-cast_to_value! {
- v: Em => Value::Length(v.into())
+cast! {
+ Em,
+ self => Value::Length(self.into()),
}
impl Resolve for Em {