Skip to content

Commit

Permalink
chore: fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Sep 11, 2023
1 parent e040e4c commit bdde558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/noirc_evaluator/src/ssa/ir/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<T> Copy for Id<T> {}

impl<T> Clone for Id<T> {
fn clone(&self) -> Self {
Self { index: self.index, _marker: self._marker }
*self
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/noirc_frontend/src/hir/def_map/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ impl PerNs {
}

pub fn iter_defs(self) -> impl Iterator<Item = ModuleDefId> {
self.types.map(|it| it.0).into_iter().chain(self.values.map(|it| it.0).into_iter())
self.types.map(|it| it.0).into_iter().chain(self.values.map(|it| it.0))
}

pub fn iter_items(self) -> impl Iterator<Item = (ModuleDefId, Visibility)> {
self.types.into_iter().chain(self.values.into_iter())
self.types.into_iter().chain(self.values)
}

pub fn is_none(&self) -> bool {
Expand Down

0 comments on commit bdde558

Please sign in to comment.