Skip to content

Commit c8f909e

Browse files
author
Michael Wright
committed
Improve variable naming
1 parent f829523 commit c8f909e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clippy_lints/src/matches.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)