Refactor to prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-05-21 21:40:56 +02:00
parent a06a8c0102
commit 3ddc250bc8

View File

@ -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