From bd8f487785a7a15699bff66ea71e3bc0a62ead41 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 4 Jan 2023 15:27:51 +0100 Subject: [PATCH] Replace uses of `iter` in `fj-operations` --- crates/fj-operations/src/difference_2d.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/fj-operations/src/difference_2d.rs b/crates/fj-operations/src/difference_2d.rs index 300cd1c76..898b07e21 100644 --- a/crates/fj-operations/src/difference_2d.rs +++ b/crates/fj-operations/src/difference_2d.rs @@ -4,7 +4,6 @@ use fj_interop::{debug::DebugInfo, ext::ArrayExt, mesh::Color}; use fj_kernel::{ algorithms::reverse::Reverse, insert::Insert, - iter::ObjectIters, objects::{Objects, Sketch}, partial::{Partial, PartialFace, PartialObject, PartialSketch}, services::Service, @@ -34,12 +33,12 @@ impl Shape for fj::Difference2d { .each_ref_ext() .map(|shape| shape.compute_brep(objects, debug_info)); - if let Some(face) = a.face_iter().next() { + if let Some(face) = a.faces().into_iter().next() { // If there's at least one face to subtract from, we can proceed. let surface = face.surface(); - for face in a.face_iter() { + for face in a.faces() { assert_eq!( surface, face.surface(), @@ -53,7 +52,7 @@ impl Shape for fj::Difference2d { } } - for face in b.face_iter() { + for face in b.faces() { assert_eq!( surface, face.surface(),