Greatly simplify lifetime captures in edition 2024
This commit is contained in:
parent
46420c9607
commit
12e3911d81
84 changed files with 223 additions and 294 deletions
|
@ -51,7 +51,7 @@ impl<I: Idx> IntervalSet<I> {
|
|||
self.map.clear();
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item = I> + '_
|
||||
pub fn iter(&self) -> impl Iterator<Item = I>
|
||||
where
|
||||
I: Step,
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ impl<I: Idx> IntervalSet<I> {
|
|||
}
|
||||
|
||||
/// Iterates through intervals stored in the set, in order.
|
||||
pub fn iter_intervals(&self) -> impl Iterator<Item = std::ops::Range<I>> + '_
|
||||
pub fn iter_intervals(&self) -> impl Iterator<Item = std::ops::Range<I>>
|
||||
where
|
||||
I: Step,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue