From 3ddc250bc8109d549748a2fc38e8e16446d965b4 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 21 May 2024 21:40:56 +0200 Subject: [PATCH] Refactor to prepare for follow-on change --- crates/fj-core/src/validate/shell.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/crates/fj-core/src/validate/shell.rs b/crates/fj-core/src/validate/shell.rs index ec72df05e..1b539465b 100644 --- a/crates/fj-core/src/validate/shell.rs +++ b/crates/fj-core/src/validate/shell.rs @@ -113,12 +113,17 @@ impl ShellValidationError { } } - for half_edge in unmatched_half_edges.into_values().cloned() { - errors.push( - Self::HalfEdgeHasNoSibling(HalfEdgeHasNoSibling { half_edge }) + unmatched_half_edges + .into_values() + .cloned() + .for_each(|half_edge| { + errors.push( + Self::HalfEdgeHasNoSibling(HalfEdgeHasNoSibling { + half_edge, + }) .into(), - ); - } + ); + }); } /// Check that non-sibling half-edges are not coincident