From 85906aa304c2265f3ae692d62306ba07694ece45 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 9 Feb 2021 18:40:05 +0100 Subject: [PATCH] Remove unneeded return --- crates/hir_def/src/resolver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/hir_def/src/resolver.rs b/crates/hir_def/src/resolver.rs index ef0b751b1f..a8467c88e6 100644 --- a/crates/hir_def/src/resolver.rs +++ b/crates/hir_def/src/resolver.rs @@ -534,7 +534,7 @@ impl ModuleItemMap { ) -> Option { let (module_def, idx) = self.crate_def_map.resolve_path(db, self.module_id, &path, BuiltinShadowMode::Other); - return match idx { + match idx { None => { let value = to_value_ns(module_def)?; Some(ResolveValueResult::ValueNs(value)) @@ -554,7 +554,7 @@ impl ModuleItemMap { }; Some(ResolveValueResult::Partial(ty, idx)) } - }; + } } fn resolve_path_in_type_ns(