diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-04-16 11:10:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-16 11:10:35 +0200 |
| commit | ee32e7ad1ce26d4eebe601344e0343cfb9c8f9bd (patch) | |
| tree | e704cd3c622acbf9faca558dd808f284a7df78f3 /library/src/compute | |
| parent | 261b96da68890dd1054efb76a72ee997cb779bae (diff) | |
Clippy fixes (#581)
Diffstat (limited to 'library/src/compute')
| -rw-r--r-- | library/src/compute/calc.rs | 2 |
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())), |
