Skip to content

Commit

Permalink
Expect &Geometry in ValidationCheck method
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Mar 18, 2024
1 parent 97ac5c1 commit 5e2a977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/fj-core/src/validation/checks/half_edge_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ mod tests {
},
&mut core,
);
AdjacentHalfEdgesNotConnected::check_and_expect_one_error(&invalid);
AdjacentHalfEdgesNotConnected::check_and_expect_one_error(
&invalid,
&core.layers.geometry,
);

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-core/src/validation/validation_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub trait ValidationCheck<T>: Sized {
///
/// This method is designed for convenience over flexibility (it is intended
/// for use in unit tests), and thus always uses the default configuration.
fn check_and_expect_one_error(object: &T) -> Self
fn check_and_expect_one_error(object: &T, _: &Geometry) -> Self
where
Self: Display,
{
Expand Down

0 comments on commit 5e2a977

Please sign in to comment.