From 9fe6d8d62c5f531fe41ec093dfbcbaae64636422 Mon Sep 17 00:00:00 2001 From: arty Date: Sun, 21 Jan 2024 00:51:15 -0800 Subject: [PATCH] clippy --- src/compiler/resolve.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/resolve.rs b/src/compiler/resolve.rs index 025306df..e7f39768 100644 --- a/src/compiler/resolve.rs +++ b/src/compiler/resolve.rs @@ -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 } } @@ -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 {