diff options
author | Aleksey Kladov <[email protected]> | 2019-11-24 15:48:29 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-24 16:01:19 +0000 |
commit | 434f108adad75b7c5e25db745a9f9fefa5cdaa31 (patch) | |
tree | 82a4925ddcd24fce7646e36615e192ad0bf63b44 /crates/ra_cli/src/analysis_stats.rs | |
parent | f5e0a31eaf9ddd7788e6261d49f4d18e8463a719 (diff) |
Simplify
Diffstat (limited to 'crates/ra_cli/src/analysis_stats.rs')
-rw-r--r-- | crates/ra_cli/src/analysis_stats.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs index 9cd21e4b6..135de7ffb 100644 --- a/crates/ra_cli/src/analysis_stats.rs +++ b/crates/ra_cli/src/analysis_stats.rs | |||
@@ -109,7 +109,7 @@ pub fn run( | |||
109 | } | 109 | } |
110 | let body = f.body(db); | 110 | let body = f.body(db); |
111 | let inference_result = f.infer(db); | 111 | let inference_result = f.infer(db); |
112 | for (expr_id, _) in body.exprs() { | 112 | for (expr_id, _) in body.exprs.iter() { |
113 | let ty = &inference_result[expr_id]; | 113 | let ty = &inference_result[expr_id]; |
114 | num_exprs += 1; | 114 | num_exprs += 1; |
115 | if let Ty::Unknown = ty { | 115 | if let Ty::Unknown = ty { |