aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_cli/src')
-rw-r--r--crates/ra_cli/src/analysis_stats.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs
index 8f4ce42da..6b1e44a2c 100644
--- a/crates/ra_cli/src/analysis_stats.rs
+++ b/crates/ra_cli/src/analysis_stats.rs
@@ -1,7 +1,7 @@
1use std::{collections::HashSet, fmt::Write, path::Path, time::Instant}; 1use std::{collections::HashSet, fmt::Write, path::Path, time::Instant};
2 2
3use ra_db::SourceDatabase; 3use ra_db::SourceDatabase;
4use ra_hir::{Crate, HasBodySource, HasSource, HirDisplay, ImplItem, ModuleDef, Ty, TypeWalk}; 4use ra_hir::{AssocItem, Crate, HasBodySource, HasSource, HirDisplay, ModuleDef, Ty, TypeWalk};
5use ra_syntax::AstNode; 5use ra_syntax::AstNode;
6 6
7use crate::{Result, Verbosity}; 7use crate::{Result, Verbosity};
@@ -47,7 +47,7 @@ pub fn run(
47 for impl_block in module.impl_blocks(db) { 47 for impl_block in module.impl_blocks(db) {
48 for item in impl_block.items(db) { 48 for item in impl_block.items(db) {
49 num_decls += 1; 49 num_decls += 1;
50 if let ImplItem::Method(f) = item { 50 if let AssocItem::Function(f) = item {
51 funcs.push(f); 51 funcs.push(f);
52 } 52 }
53 } 53 }