Add lifetime to prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-05-21 21:43:43 +02:00
parent aeb5ac8131
commit 43b924ed69

View File

@ -72,10 +72,10 @@ pub enum ShellValidationError {
impl ShellValidationError {
/// Check that each half-edge is part of a pair
fn check_half_edge_pairs(
shell: &Shell,
geometry: &Geometry,
errors: &mut Vec<ValidationError>,
fn check_half_edge_pairs<'r>(
shell: &'r Shell,
geometry: &'r Geometry,
errors: &'r mut Vec<ValidationError>,
) {
let mut unmatched_half_edges = BTreeMap::new();