diff --git a/src/inclusive_map.rs b/src/inclusive_map.rs index 36ff7da..ae9c89e 100644 --- a/src/inclusive_map.rs +++ b/src/inclusive_map.rs @@ -559,7 +559,10 @@ where /// Gets an iterator over all the stored ranges that are /// either partially or completely overlapped by the given range. - pub fn overlapping>>(&self, range: R) -> Overlapping { + pub fn overlapping>>( + &'_ self, + range: R, + ) -> Overlapping<'_, K, V, R> { // Find the first matching stored range by its _end_, // using sneaky layering and `Borrow` implementation. (See `range_wrappers` module.) let start_sliver = RangeInclusiveEndWrapper::new( diff --git a/src/inclusive_set.rs b/src/inclusive_set.rs index c7ad1c0..7772899 100644 --- a/src/inclusive_set.rs +++ b/src/inclusive_set.rs @@ -175,7 +175,7 @@ where /// either partially or completely overlapped by the given range. /// /// The iterator element type is `RangeInclusive`. - pub fn overlapping>>(&self, range: R) -> Overlapping { + pub fn overlapping>>(&'_ self, range: R) -> Overlapping<'_, T, R> { Overlapping { inner: self.rm.overlapping(range), } diff --git a/src/map.rs b/src/map.rs index 2ed7243..7296c5b 100644 --- a/src/map.rs +++ b/src/map.rs @@ -200,7 +200,7 @@ where /// Gets an iterator over all the stored ranges that are /// either partially or completely overlapped by the given range. - pub fn overlapping>>(&self, range: R) -> Overlapping { + pub fn overlapping>>(&'_ self, range: R) -> Overlapping<'_, K, V, R> { // Find the first matching stored range by its _end_, // using sneaky layering and `Borrow` implementation. (See `range_wrappers` module.) let start_sliver = diff --git a/src/set.rs b/src/set.rs index 3437213..d68b182 100644 --- a/src/set.rs +++ b/src/set.rs @@ -159,7 +159,7 @@ where /// either partially or completely overlapped by the given range. /// /// The iterator element type is `&Range`. - pub fn overlapping>>(&self, range: R) -> Overlapping { + pub fn overlapping>>(&'_ self, range: R) -> Overlapping<'_, T, R> { Overlapping { inner: self.rm.overlapping(range), }