Skip to content

Commit

Permalink
Thanks, Clippy!
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffparsons committed Dec 28, 2024
1 parent bfdf74e commit 9042792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions benches/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn range_map<K: Ord + StepLite + Debug + Clone, V: Eq + Clone + Debug>(
fn criterion_benchmark(c: &mut Criterion) {
let mut runner = TestRunner::deterministic();

let mut group = c.benchmark_group(&format!(
let mut group = c.benchmark_group(format!(
"RangeMap<{}, {}>",
type_name::<Key>(),
type_name::<Value>()
Expand Down Expand Up @@ -98,7 +98,7 @@ fn criterion_benchmark(c: &mut Criterion) {

group.finish();

let mut group = c.benchmark_group(&format!(
let mut group = c.benchmark_group(format!(
"RangeInclusiveMap<{}, {}>",
type_name::<Key>(),
type_name::<Value>()
Expand Down
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ where

fn next(&mut self) -> Option<Self::Item> {
// Keep track of the next range in the map beyond the current returned range.
while let Some(overlap) = self.btm_range_iter.next() {
for overlap in self.btm_range_iter.by_ref() {
let overlap = &overlap.0.range;

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

0 comments on commit 9042792

Please sign in to comment.