Remove unneeded return

This commit is contained in:
Jonas Schievink 2021-02-09 18:40:05 +01:00
parent 51f68863b1
commit 85906aa304

View File

@ -534,7 +534,7 @@ fn resolve_path_in_value_ns(
) -> Option<ResolveValueResult> { ) -> Option<ResolveValueResult> {
let (module_def, idx) = let (module_def, idx) =
self.crate_def_map.resolve_path(db, self.module_id, &path, BuiltinShadowMode::Other); self.crate_def_map.resolve_path(db, self.module_id, &path, BuiltinShadowMode::Other);
return match idx { match idx {
None => { None => {
let value = to_value_ns(module_def)?; let value = to_value_ns(module_def)?;
Some(ResolveValueResult::ValueNs(value)) Some(ResolveValueResult::ValueNs(value))
@ -554,7 +554,7 @@ fn resolve_path_in_value_ns(
}; };
Some(ResolveValueResult::Partial(ty, idx)) Some(ResolveValueResult::Partial(ty, idx))
} }
}; }
} }
fn resolve_path_in_type_ns( fn resolve_path_in_type_ns(