File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1735,21 +1735,21 @@ where
1735
1735
1736
1736
let mut started = vec ! [ ] ;
1737
1737
1738
- for RangeBound ( _, kind, r ) in values {
1738
+ for RangeBound ( _, kind, range ) in values {
1739
1739
match kind {
1740
- BoundKind :: Start => started. push ( r ) ,
1740
+ BoundKind :: Start => started. push ( range ) ,
1741
1741
BoundKind :: EndExcluded | BoundKind :: EndIncluded => {
1742
1742
let mut overlap = None ;
1743
1743
1744
- while let Some ( sr ) = started. pop ( ) {
1745
- if sr == r {
1744
+ while let Some ( last_started ) = started. pop ( ) {
1745
+ if last_started == range {
1746
1746
break ;
1747
1747
}
1748
- overlap = Some ( sr ) ;
1748
+ overlap = Some ( last_started ) ;
1749
1749
}
1750
1750
1751
- if let Some ( sr ) = overlap {
1752
- return Some ( ( r , sr ) ) ;
1751
+ if let Some ( first_overlapping ) = overlap {
1752
+ return Some ( ( range , first_overlapping ) ) ;
1753
1753
}
1754
1754
} ,
1755
1755
}
You can’t perform that action at this time.
0 commit comments