Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dcreager committed Feb 27, 2025
1 parent bb5b7da commit d26b0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_index/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,8 @@ where
self.builder.scratch.push((new_key, new_value));
if curr == self.predecessor {
break;
} else {
curr = next;
}
curr = next;
}
}

Expand Down Expand Up @@ -721,6 +720,7 @@ impl<K, V> ListBuilder<K, V> {
}

/// Applies a function to each value in a list, returning a new list.
#[allow(clippy::needless_pass_by_value)]
pub fn map_with<F>(&mut self, list: List<K, V>, mut f: F) -> List<K, V>
where
K: Clone,
Expand Down

0 comments on commit d26b0fd

Please sign in to comment.