Skip to content

Commit 1e27657

Browse files
committed
Cleanup
1 parent 8800929 commit 1e27657

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

src/coordinate/coor2d.rs

-2
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,8 @@ impl Coor2D {
163163
pub fn hypot2(&self, other: &Self) -> f64 {
164164
(self[0] - other[0]).hypot(self[1] - other[1])
165165
}
166-
167166
}
168167

169-
170168
impl From<Coor2D> for Coor4D {
171169
fn from(c: Coor2D) -> Self {
172170
Coor4D([c[0], c[1], 0.0, 0.0])

src/coordinate/coor3d.rs

-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ impl Coor3D {
262262
.hypot(self[1] - other[1])
263263
.hypot(self[2] - other[2])
264264
}
265-
266265
}
267266

268267
// ----- T E S T S ---------------------------------------------------

src/coordinate/mod.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ pub trait CoordTrait {
163163

164164
/// Returns a tuple that contains the three first components of the coord converted to f64.
165165
fn xyzt_as_f64(&self) -> (f64, f64, f64, f64) {
166-
(self.x_as_f64(), self.y_as_f64(), self.z_as_f64(), self.t_as_f64())
166+
(
167+
self.x_as_f64(),
168+
self.y_as_f64(),
169+
self.z_as_f64(),
170+
self.t_as_f64(),
171+
)
167172
}
168173
}
169174

@@ -207,8 +212,6 @@ impl CoordTrait for Coor2D {
207212
}
208213
}
209214

210-
211-
212215
impl CoordTrait for Coor32 {
213216
type T = f32;
214217
const DIMENSION: usize = 2;

src/ellipsoid/geodesics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ impl Ellipsoid {
206206
#[must_use]
207207
pub fn distance<T>(&self, from: &T, to: &T) -> f64
208208
where
209-
T: CoordTrait
209+
T: CoordTrait,
210210
{
211-
self.geodesic_inv::<T>(&from, &to)[2]
211+
self.geodesic_inv::<T>(from, to)[2]
212212
}
213213
}
214214

src/inner_op/molodensky.rs

-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ mod tests {
209209
use super::*;
210210
use crate::math::angular;
211211

212-
213212
#[test]
214213
fn molodensky() -> Result<(), Error> {
215214
let mut ctx = Minimal::default();

0 commit comments

Comments
 (0)