diff --git a/crates/hir_def/src/resolver.rs b/crates/hir_def/src/resolver.rs index ef0b751b1f0..a8467c88e6e 100644 --- a/crates/hir_def/src/resolver.rs +++ b/crates/hir_def/src/resolver.rs @@ -534,7 +534,7 @@ fn resolve_path_in_value_ns( ) -> 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 @@ fn resolve_path_in_value_ns( }; Some(ResolveValueResult::Partial(ty, idx)) } - }; + } } fn resolve_path_in_type_ns(