Improve variable naming

This commit is contained in:
Michael Wright 2021-11-09 05:44:02 +02:00
parent f829523340
commit c8f909ee54

View File

@ -1735,21 +1735,21 @@ fn cmp(&self, RangeBound(other_value, other_kind, _): &Self) -> Ordering {
let mut started = vec![];
for RangeBound(_, kind, r) in values {
for RangeBound(_, kind, range) in values {
match kind {
BoundKind::Start => started.push(r),
BoundKind::Start => started.push(range),
BoundKind::EndExcluded | BoundKind::EndIncluded => {
let mut overlap = None;
while let Some(sr) = started.pop() {
if sr == r {
while let Some(last_started) = started.pop() {
if last_started == range {
break;
}
overlap = Some(sr);
overlap = Some(last_started);
}
if let Some(sr) = overlap {
return Some((r, sr));
if let Some(first_overlapping) = overlap {
return Some((range, first_overlapping));
}
},
}