From 5e2a9776e5afb8adb6bdbfe6a9d26374960a77be Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 18 Mar 2024 13:47:34 +0100 Subject: [PATCH] Expect `&Geometry` in `ValidationCheck` method --- crates/fj-core/src/validation/checks/half_edge_connection.rs | 5 ++++- crates/fj-core/src/validation/validation_check.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/fj-core/src/validation/checks/half_edge_connection.rs b/crates/fj-core/src/validation/checks/half_edge_connection.rs index 5a2dec955..a2ae617e6 100644 --- a/crates/fj-core/src/validation/checks/half_edge_connection.rs +++ b/crates/fj-core/src/validation/checks/half_edge_connection.rs @@ -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(()) } diff --git a/crates/fj-core/src/validation/validation_check.rs b/crates/fj-core/src/validation/validation_check.rs index 7190343d4..cfe77fd6e 100644 --- a/crates/fj-core/src/validation/validation_check.rs +++ b/crates/fj-core/src/validation/validation_check.rs @@ -37,7 +37,7 @@ pub trait ValidationCheck: 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, {