Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Jan 21, 2024
1 parent 13940ee commit 9fe6d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fn exposed_name_matches(exposed: &ModuleImportListedName, orig_name: &[u8]) -> b
if let Some(alias) = exposed.alias.as_ref() {
orig_name == alias
} else {
orig_name == &exposed.name
orig_name == exposed.name
}
}

Expand Down Expand Up @@ -272,7 +272,7 @@ pub fn find_helper_target(
// If we're matching a macro name, then we must propogate
// the search for a macro name.

let target_name = if is_macro_name(&name) {
let target_name = if is_macro_name(name) {
let (_, child) = name.parent_and_name();
ns_spec.longname.with_child(&child)
} else {
Expand Down

0 comments on commit 9fe6d8d

Please sign in to comment.