mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Simplify
This commit is contained in:
parent
f5e0a31eaf
commit
434f108ada
8 changed files with 17 additions and 33 deletions
|
@ -109,7 +109,7 @@ pub fn run(
|
|||
}
|
||||
let body = f.body(db);
|
||||
let inference_result = f.infer(db);
|
||||
for (expr_id, _) in body.exprs() {
|
||||
for (expr_id, _) in body.exprs.iter() {
|
||||
let ty = &inference_result[expr_id];
|
||||
num_exprs += 1;
|
||||
if let Ty::Unknown = ty {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue