Remove unneeded return
This commit is contained in:
parent
51f68863b1
commit
85906aa304
@ -534,7 +534,7 @@ fn resolve_path_in_value_ns(
|
||||
) -> Option<ResolveValueResult> {
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user