From 4bc5c13d2ce39ea3108a091a9260a4217a132f41 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 21 Mar 2025 21:22:17 +0100 Subject: [PATCH] Avoid use of redundant method --- crates/fj-interop/src/tri_mesh.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/fj-interop/src/tri_mesh.rs b/crates/fj-interop/src/tri_mesh.rs index 68934b686..cf317091c 100644 --- a/crates/fj-interop/src/tri_mesh.rs +++ b/crates/fj-interop/src/tri_mesh.rs @@ -54,7 +54,9 @@ impl TriMesh { /// # Compute the axis-aligned bounding box of this mesh pub fn aabb(&self) -> Aabb<3> { Aabb::<3>::from_points( - self.triangles().flat_map(|triangle| triangle.inner.points), + self.triangles + .iter() + .flat_map(|triangle| triangle.inner.points), ) } }