diff --git a/crates/algorithms/src/rect.rs b/crates/algorithms/src/rect.rs index eb8479bb..9307d474 100644 --- a/crates/algorithms/src/rect.rs +++ b/crates/algorithms/src/rect.rs @@ -102,7 +102,7 @@ pub fn to_axis_aligned_rectangle>( } } - ctx.edge(from, to); + ctx.edge(from, to)?; } PathEvent::Cubic { from, @@ -139,7 +139,7 @@ pub fn to_axis_aligned_rectangle>( return None; } - ctx.edge(from, to); + ctx.edge(from, to)?; } } } diff --git a/crates/algorithms/src/rounded_polygon.rs b/crates/algorithms/src/rounded_polygon.rs index fdf7e6c1..6a7228aa 100644 --- a/crates/algorithms/src/rounded_polygon.rs +++ b/crates/algorithms/src/rounded_polygon.rs @@ -203,7 +203,7 @@ fn rounded_polygon() { let mut previous = actual_events[0].to(); for e in actual_events { - e.from().approx_eq(&previous); + assert!(e.from().approx_eq(&previous)); previous = e.to(); } }