From c695da871a75bb6786c08c3546ef71ed032bd61d Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 13 Feb 2021 19:58:54 +0100 Subject: Fixed test and compile warnings --- src/core/bound.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/bound.rs') diff --git a/src/core/bound.rs b/src/core/bound.rs index 3978028..37918d4 100644 --- a/src/core/bound.rs +++ b/src/core/bound.rs @@ -128,7 +128,7 @@ mod tests { let b1 = Bound2i::new_xyxy(10, 10, 20, 20); let b2 = Bound2i::new_xyxy(2, 11, 22, 17); - let b = intersect(&b1, &b2); + let b = b1.intersect(&b2); assert!( b.min.x == 10 && -- cgit v1.2.3