mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Set expectation for no-semi expression statements to unit
This commit is contained in:
parent
73e2505cfa
commit
24ba1bed04
5 changed files with 82 additions and 47 deletions
|
@ -294,8 +294,8 @@ impl Resolver {
|
|||
}
|
||||
}
|
||||
|
||||
if let res @ Some(_) = self.module_scope.resolve_path_in_value_ns(db, path) {
|
||||
return res;
|
||||
if let Some(res) = self.module_scope.resolve_path_in_value_ns(db, path) {
|
||||
return Some(res);
|
||||
}
|
||||
|
||||
// If a path of the shape `u16::from_le_bytes` failed to resolve at all, then we fall back
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue