diff options
author | Aleksey Kladov <[email protected]> | 2020-02-06 15:40:28 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-06 15:40:28 +0000 |
commit | a173e31890c1eb03d9d4c123986baae4154cd4fa (patch) | |
tree | a2b4de01cd6128b70f0fc0cf4156b6537304ae56 /crates/ra_ide | |
parent | ff0f0fc31e84deb7aebf8ab6ec510051d531c9f2 (diff) |
Make assists use ImportsLocator directly
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/assists.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/assists.rs b/crates/ra_ide/src/assists.rs index 4a7d8cfa9..6ee617e79 100644 --- a/crates/ra_ide/src/assists.rs +++ b/crates/ra_ide/src/assists.rs | |||
@@ -3,7 +3,7 @@ | |||
3 | use either::Either; | 3 | use either::Either; |
4 | use ra_assists::{AssistAction, AssistLabel}; | 4 | use ra_assists::{AssistAction, AssistLabel}; |
5 | use ra_db::{FilePosition, FileRange}; | 5 | use ra_db::{FilePosition, FileRange}; |
6 | use ra_ide_db::{imports_locator::ImportsLocatorIde, RootDatabase}; | 6 | use ra_ide_db::RootDatabase; |
7 | 7 | ||
8 | use crate::{FileId, SourceChange, SourceFileEdit}; | 8 | use crate::{FileId, SourceChange, SourceFileEdit}; |
9 | 9 | ||
@@ -17,7 +17,7 @@ pub struct Assist { | |||
17 | } | 17 | } |
18 | 18 | ||
19 | pub(crate) fn assists(db: &RootDatabase, frange: FileRange) -> Vec<Assist> { | 19 | pub(crate) fn assists(db: &RootDatabase, frange: FileRange) -> Vec<Assist> { |
20 | ra_assists::assists_with_imports_locator(db, frange, ImportsLocatorIde::new(db)) | 20 | ra_assists::assists_with_imports_locator(db, frange) |
21 | .into_iter() | 21 | .into_iter() |
22 | .map(|assist| { | 22 | .map(|assist| { |
23 | let file_id = frange.file_id; | 23 | let file_id = frange.file_id; |