From ac6a71f6e4ccf9af2cc3785f04d74b86b4510edd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 22 Mar 2021 18:56:11 +0000 Subject: [PATCH] Area: Fix overlaps This never worked properly. Signed-off-by: Ian Jackson --- src/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spec.rs b/src/spec.rs index 6871ddd9..d1589708 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -381,7 +381,7 @@ pub mod implementation { } pub fn overlaps(&self, other: &AreaC) -> bool where T: Ord { - ! (0..2).any(|i| !( + ! (0..2).any(|i| ( other.0[1].0[i] < self .0[0].0[i] || self .0[1].0[i] < other.0[0].0[i] )) -- 2.30.2