diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-04-01 15:53:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 15:53:13 +0200 |
| commit | 5e5b1bba510179a1c50f34b3a239f1913e7be78d (patch) | |
| tree | 520058fd817fcd4b5f3e523c5f665fed6916b098 /library/src/compute | |
| parent | 9eb6174b22fa4824869fc5e923b96847c2968462 (diff) | |
Needless clone, borrows, casts and lifetimes (#504)
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 d98d09b2..bb5d9002 100644 --- a/library/src/compute/calc.rs +++ b/library/src/compute/calc.rs @@ -457,7 +457,7 @@ pub fn round( Num::Int(n) if digits == 0 => Value::Int(n), _ => { let n = value.float(); - let factor = 10.0_f64.powi(digits as i32) as f64; + let factor = 10.0_f64.powi(digits as i32); Value::Float((n * factor).round() / factor) } } |
