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
17351735
17361736 let mut started = vec ! [ ] ;
17371737
1738- for RangeBound ( _, kind, r ) in values {
1738+ for RangeBound ( _, kind, range ) in values {
17391739 match kind {
1740- BoundKind :: Start => started. push ( r ) ,
1740+ BoundKind :: Start => started. push ( range ) ,
17411741 BoundKind :: EndExcluded | BoundKind :: EndIncluded => {
17421742 let mut overlap = None ;
17431743
1744- while let Some ( sr ) = started. pop ( ) {
1745- if sr == r {
1744+ while let Some ( last_started ) = started. pop ( ) {
1745+ if last_started == range {
17461746 break ;
17471747 }
1748- overlap = Some ( sr ) ;
1748+ overlap = Some ( last_started ) ;
17491749 }
17501750
1751- if let Some ( sr ) = overlap {
1752- return Some ( ( r , sr ) ) ;
1751+ if let Some ( first_overlapping ) = overlap {
1752+ return Some ( ( range , first_overlapping ) ) ;
17531753 }
17541754 } ,
17551755 }
You can’t perform that action at this time.
0 commit comments