diff options
author | Aleksey Kladov <[email protected]> | 2020-02-06 15:23:28 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-06 15:23:28 +0000 |
commit | 271017e6bf5b5f46464d09db7fc869c92998fc80 (patch) | |
tree | 76227de73a33f3dd51d74d6736cf425a8a89bb64 /crates/ra_ide/src/imports_locator.rs | |
parent | f8dde21fe9ccceea0b3dea83d646a45a409a0e3f (diff) |
Move NameKind up
Diffstat (limited to 'crates/ra_ide/src/imports_locator.rs')
-rw-r--r-- | crates/ra_ide/src/imports_locator.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/ra_ide/src/imports_locator.rs b/crates/ra_ide/src/imports_locator.rs index 23bf43b07..0dca0c86c 100644 --- a/crates/ra_ide/src/imports_locator.rs +++ b/crates/ra_ide/src/imports_locator.rs | |||
@@ -4,16 +4,14 @@ | |||
4 | use hir::{db::HirDatabase, ModuleDef, SourceBinder}; | 4 | use hir::{db::HirDatabase, ModuleDef, SourceBinder}; |
5 | use ra_assists::ImportsLocator; | 5 | use ra_assists::ImportsLocator; |
6 | use ra_ide_db::{ | 6 | use ra_ide_db::{ |
7 | defs::NameKind, | ||
7 | symbol_index::{self, FileSymbol}, | 8 | symbol_index::{self, FileSymbol}, |
8 | RootDatabase, | 9 | RootDatabase, |
9 | }; | 10 | }; |
10 | use ra_prof::profile; | 11 | use ra_prof::profile; |
11 | use ra_syntax::{ast, AstNode, SyntaxKind::NAME}; | 12 | use ra_syntax::{ast, AstNode, SyntaxKind::NAME}; |
12 | 13 | ||
13 | use crate::{ | 14 | use crate::{references::classify_name, Query}; |
14 | references::{classify_name, NameKind}, | ||
15 | Query, | ||
16 | }; | ||
17 | 15 | ||
18 | pub(crate) struct ImportsLocatorIde<'a> { | 16 | pub(crate) struct ImportsLocatorIde<'a> { |
19 | source_binder: SourceBinder<'a, RootDatabase>, | 17 | source_binder: SourceBinder<'a, RootDatabase>, |