Skip to content

Commit

Permalink
chore: fix clippy warning (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed May 2, 2023
1 parent 54971bc commit 11943b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/noirc_evaluator/src/ssa_refactor/ir/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl<T> DenseMap<T> {
///
/// The id-element pairs are ordered by the numeric values of the ids.
pub(crate) fn iter(&self) -> impl ExactSizeIterator<Item = (Id<T>, &T)> {
let ids_iter = (0..self.storage.len()).into_iter().map(|idx| Id::new(idx));
let ids_iter = (0..self.storage.len()).map(|idx| Id::new(idx));
ids_iter.zip(self.storage.iter())
}
}
Expand Down

0 comments on commit 11943b6

Please sign in to comment.