Skip to content

Commit

Permalink
chore: clippy warning fix (#7051)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Jan 14, 2025
1 parent 1e64f8a commit 4624549
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions compiler/noirc_frontend/src/elaborator/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1434,12 +1434,8 @@ impl<'context> Elaborator<'context> {
.filter_map(|trait_id| {
let trait_ = self.interner.get_trait(*trait_id);
let trait_name = &trait_.name;
let Some(map) = module_data.scope().types().get(trait_name) else {
return None;
};
let Some(imported_item) = map.get(&None) else {
return None;
};
let map = module_data.scope().types().get(trait_name)?;
let imported_item = map.get(&None)?;
if imported_item.0 == ModuleDefId::TraitId(*trait_id) {
Some((*trait_id, trait_name))
} else {
Expand Down

0 comments on commit 4624549

Please sign in to comment.