summaryrefslogtreecommitdiff
path: root/library/src/compute/calc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/compute/calc.rs')
-rw-r--r--library/src/compute/calc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/compute/calc.rs b/library/src/compute/calc.rs
index d5166449..35e7ddb8 100644
--- a/library/src/compute/calc.rs
+++ b/library/src/compute/calc.rs
@@ -71,7 +71,7 @@ cast_from_value! {
v: i64 => Self(Value::Int(v.abs())),
v: f64 => Self(Value::Float(v.abs())),
v: Length => Self(Value::Length(v.try_abs()
- .ok_or_else(|| "cannot take absolute value of this length")?)),
+ .ok_or("cannot take absolute value of this length")?)),
v: Angle => Self(Value::Angle(v.abs())),
v: Ratio => Self(Value::Ratio(v.abs())),
v: Fr => Self(Value::Fraction(v.abs())),