aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-02-09 17:40:05 +0000
committerJonas Schievink <[email protected]>2021-02-09 17:40:05 +0000
commit85906aa304c2265f3ae692d62306ba07694ece45 (patch)
tree77ff6c525d518d0f2bbd0d9038c1ffba288ce8a9 /crates/hir_def/src
parent51f68863b19b7499e4257dfcb39a40d69cbc9f97 (diff)
Remove unneeded return
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r--crates/hir_def/src/resolver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/resolver.rs b/crates/hir_def/src/resolver.rs
index ef0b751b1..a8467c88e 100644
--- a/crates/hir_def/src/resolver.rs
+++ b/crates/hir_def/src/resolver.rs
@@ -534,7 +534,7 @@ impl ModuleItemMap {
534 ) -> Option<ResolveValueResult> { 534 ) -> Option<ResolveValueResult> {
535 let (module_def, idx) = 535 let (module_def, idx) =
536 self.crate_def_map.resolve_path(db, self.module_id, &path, BuiltinShadowMode::Other); 536 self.crate_def_map.resolve_path(db, self.module_id, &path, BuiltinShadowMode::Other);
537 return match idx { 537 match idx {
538 None => { 538 None => {
539 let value = to_value_ns(module_def)?; 539 let value = to_value_ns(module_def)?;
540 Some(ResolveValueResult::ValueNs(value)) 540 Some(ResolveValueResult::ValueNs(value))
@@ -554,7 +554,7 @@ impl ModuleItemMap {
554 }; 554 };
555 Some(ResolveValueResult::Partial(ty, idx)) 555 Some(ResolveValueResult::Partial(ty, idx))
556 } 556 }
557 }; 557 }
558 } 558 }
559 559
560 fn resolve_path_in_type_ns( 560 fn resolve_path_in_type_ns(