diff options
Diffstat (limited to 'crates/ra_assists/src/lib.rs')
-rw-r--r-- | crates/ra_assists/src/lib.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/crates/ra_assists/src/lib.rs b/crates/ra_assists/src/lib.rs index 6e81ea8ee..13ea45ec7 100644 --- a/crates/ra_assists/src/lib.rs +++ b/crates/ra_assists/src/lib.rs | |||
@@ -18,7 +18,7 @@ pub mod utils; | |||
18 | pub mod ast_transform; | 18 | pub mod ast_transform; |
19 | 19 | ||
20 | use hir::Semantics; | 20 | use hir::Semantics; |
21 | use ra_db::{FileId, FileRange}; | 21 | use ra_db::FileRange; |
22 | use ra_ide_db::{source_change::SourceChange, RootDatabase}; | 22 | use ra_ide_db::{source_change::SourceChange, RootDatabase}; |
23 | use ra_syntax::TextRange; | 23 | use ra_syntax::TextRange; |
24 | 24 | ||
@@ -62,18 +62,6 @@ pub struct ResolvedAssist { | |||
62 | pub source_change: SourceChange, | 62 | pub source_change: SourceChange, |
63 | } | 63 | } |
64 | 64 | ||
65 | #[derive(Debug, Clone, Copy)] | ||
66 | enum AssistFile { | ||
67 | CurrentFile, | ||
68 | TargetFile(FileId), | ||
69 | } | ||
70 | |||
71 | impl Default for AssistFile { | ||
72 | fn default() -> Self { | ||
73 | Self::CurrentFile | ||
74 | } | ||
75 | } | ||
76 | |||
77 | /// Return all the assists applicable at the given position. | 65 | /// Return all the assists applicable at the given position. |
78 | /// | 66 | /// |
79 | /// Assists are returned in the "unresolved" state, that is only labels are | 67 | /// Assists are returned in the "unresolved" state, that is only labels are |