Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/inclusive_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<R: Borrow<RangeInclusive<K>>>(&self, range: R) -> Overlapping<K, V, R> {
pub fn overlapping<R: Borrow<RangeInclusive<K>>>(
&'_ 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(
Expand Down
2 changes: 1 addition & 1 deletion src/inclusive_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ where
/// either partially or completely overlapped by the given range.
///
/// The iterator element type is `RangeInclusive<T>`.
pub fn overlapping<R: Borrow<RangeInclusive<T>>>(&self, range: R) -> Overlapping<T, R> {
pub fn overlapping<R: Borrow<RangeInclusive<T>>>(&'_ self, range: R) -> Overlapping<'_, T, R> {
Overlapping {
inner: self.rm.overlapping(range),
}
Expand Down
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<R: Borrow<Range<K>>>(&self, range: R) -> Overlapping<K, V, R> {
pub fn overlapping<R: Borrow<Range<K>>>(&'_ 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 =
Expand Down
2 changes: 1 addition & 1 deletion src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ where
/// either partially or completely overlapped by the given range.
///
/// The iterator element type is `&Range<T>`.
pub fn overlapping<R: Borrow<Range<T>>>(&self, range: R) -> Overlapping<T, R> {
pub fn overlapping<R: Borrow<Range<T>>>(&'_ self, range: R) -> Overlapping<'_, T, R> {
Overlapping {
inner: self.rm.overlapping(range),
}
Expand Down
Loading