diff options
Diffstat (limited to 'src/volume.rs')
| -rw-r--r-- | src/volume.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/volume.rs b/src/volume.rs index 933ae49..5818ea4 100644 --- a/src/volume.rs +++ b/src/volume.rs @@ -41,7 +41,7 @@ impl CubicMetre { impl From<Litre> for CubicMetre { fn from(value: Litre) -> Self { - Self(value.0 * 10_f64.powf(-3.)) + Self(value.0 * 10_f64.powi(-3)) } } @@ -56,7 +56,7 @@ impl<F: Into<f64>> From<F> for Litre { impl From<CubicMetre> for Litre { fn from(value: CubicMetre) -> Self { - Self(value.0 * 10_f64.powf(3.)) + Self(value.0 * 10_f64.powi(3)) } } |