Skip to content

Commit

Permalink
fix some clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajsi-msft committed Dec 30, 2024
1 parent 5871943 commit 6a9e6f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inclusive_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ where
Gaps {
candidate_needs_plus_one: false,
candidate_start: outer_range.start(),
query_end: &outer_range.end(),
query_end: outer_range.end(),
btm_range_iter: overlap_iter.btm_range_iter,
// We'll start the candidate range at the start of the outer range
// without checking what's there. Each time we yield an item,
Expand Down Expand Up @@ -825,7 +825,7 @@ where
type Item = RangeInclusive<K>;

fn next(&mut self) -> Option<Self::Item> {
while let Some(overlap) = self.btm_range_iter.next() {
for overlap in self.btm_range_iter.by_ref() {
let overlap = overlap.0;

// If the range in the map has advanced beyond the query range, return
Expand Down

0 comments on commit 6a9e6f3

Please sign in to comment.