diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-06-28 12:34:49 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-06-28 12:34:49 -0400 |
commit | 5aa0fd44535faa0ea1c0522b089e16d4b57e4e6f (patch) | |
tree | 1dcc37412195f0851dd86b836368bf809a35b4b4 /src/euclid.rs | |
parent | 7ce5a60f5fc69f9c47cdae2762b14873d3e90733 (diff) | |
download | acap-5aa0fd44535faa0ea1c0522b089e16d4b57e4e6f.tar.xz |
Apply some rustfmt suggestions
Diffstat (limited to 'src/euclid.rs')
-rw-r--r-- | src/euclid.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/euclid.rs b/src/euclid.rs index c1d88ae..3833146 100644 --- a/src/euclid.rs +++ b/src/euclid.rs @@ -1,6 +1,6 @@ //! [Euclidean space](https://en.wikipedia.org/wiki/Euclidean_space). -use crate::coords::{Coordinates, CoordinateMetric, CoordinateProximity}; +use crate::coords::{CoordinateMetric, CoordinateProximity, Coordinates}; use crate::distance::{Distance, Metric, Proximity, Value}; use num_traits::zero; @@ -243,7 +243,7 @@ macro_rules! float_distance { impl Distance for EuclideanDistance<$f> { type Value = $f; } - } + }; } float_distance!(f32); @@ -353,7 +353,7 @@ macro_rules! int_distance { impl Distance for EuclideanDistance<$i> { type Value = $f; } - } + }; } int_distance!(i16, f32, f32); |