diff options
author | Jonas Schievink <[email protected]> | 2021-02-09 17:40:05 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-02-09 17:40:05 +0000 |
commit | 85906aa304c2265f3ae692d62306ba07694ece45 (patch) | |
tree | 77ff6c525d518d0f2bbd0d9038c1ffba288ce8a9 /crates/hir_def/src | |
parent | 51f68863b19b7499e4257dfcb39a40d69cbc9f97 (diff) |
Remove unneeded return
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/resolver.rs | 4 |
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( |