From ba381cf1d7ef3c2e9db1c1d2fd2d82bc0e5ae79f Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Wed, 13 Mar 2024 17:18:11 -0700 Subject: [PATCH] Fix for interval overlap check. --- src/timestamp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timestamp.rs b/src/timestamp.rs index 2c2b839..8820c58 100644 --- a/src/timestamp.rs +++ b/src/timestamp.rs @@ -138,7 +138,7 @@ impl Interval { point >= self.start && point < self.stop } pub fn overlaps(self, other: Interval) -> bool { - !(other.stop < self.start || other.start >= self.stop) + !(other.stop <= self.start || other.start >= self.stop) } pub fn intersection(self, other: Interval) -> Self { Self {