Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kobyhallx committed Jan 18, 2024
1 parent 84779a4 commit 68bf2f7
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions compiler/noirc_frontend/src/resolve_locations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,7 @@ impl NodeInterner {
fn try_resolve_type_alias(&self, location: Location) -> Option<Location> {
self.type_alias_ref
.iter()
.find(|(type_alias_id, named_type_location)| {
tracing::debug!(
"Trying type alias {:?}, type_id {:?}",
named_type_location,
type_alias_id
);
named_type_location.span.contains(&location.span)
})
.and_then(|(type_alias_id, _found_location)| {
Some(self.get_type_alias(*type_alias_id).location)
})
.find(|(_, named_type_location)| named_type_location.span.contains(&location.span))
.map(|(type_alias_id, _found_location)| self.get_type_alias(*type_alias_id).location)
}
}

0 comments on commit 68bf2f7

Please sign in to comment.