diff options
Diffstat (limited to 'crates/ra_cli')
-rw-r--r-- | crates/ra_cli/src/analysis_stats.rs | 4 |
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 @@ | |||
1 | use std::{collections::HashSet, fmt::Write, path::Path, time::Instant}; | 1 | use std::{collections::HashSet, fmt::Write, path::Path, time::Instant}; |
2 | 2 | ||
3 | use ra_db::SourceDatabase; | 3 | use ra_db::SourceDatabase; |
4 | use ra_hir::{Crate, HasBodySource, HasSource, HirDisplay, ImplItem, ModuleDef, Ty, TypeWalk}; | 4 | use ra_hir::{AssocItem, Crate, HasBodySource, HasSource, HirDisplay, ModuleDef, Ty, TypeWalk}; |
5 | use ra_syntax::AstNode; | 5 | use ra_syntax::AstNode; |
6 | 6 | ||
7 | use crate::{Result, Verbosity}; | 7 | use 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 | } |