diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_dot.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_dot.rs b/crates/ra_ide_api/src/completion/complete_dot.rs index b6579be63..1dbbdb1bc 100644 --- a/crates/ra_ide_api/src/completion/complete_dot.rs +++ b/crates/ra_ide_api/src/completion/complete_dot.rs | |||
@@ -1,14 +1,14 @@ | |||
1 | use hir::{AdtDef, Ty, TypeCtor}; | 1 | use hir::{AdtDef, Ty, TypeCtor}; |
2 | 2 | ||
3 | use crate::{completion::{ | 3 | use crate::completion::completion_item::{Builder, CompletionKind}; |
4 | completion_context::CompletionContext, | 4 | use crate::{ |
5 | completion_item::Completions, | 5 | completion::{completion_context::CompletionContext, completion_item::Completions}, |
6 | }, CompletionItem}; | 6 | CompletionItem, |
7 | }; | ||
7 | use ra_syntax::ast::AstNode; | 8 | use ra_syntax::ast::AstNode; |
9 | use ra_syntax::TextRange; | ||
8 | use ra_text_edit::TextEditBuilder; | 10 | use ra_text_edit::TextEditBuilder; |
9 | use rustc_hash::FxHashSet; | 11 | use rustc_hash::FxHashSet; |
10 | use crate::completion::completion_item::{Builder, CompletionKind}; | ||
11 | use ra_syntax::TextRange; | ||
12 | 12 | ||
13 | /// Applies postfix edition but with CompletionKind::Reference | 13 | /// Applies postfix edition but with CompletionKind::Reference |
14 | fn postfix_reference(ctx: &CompletionContext, label: &str, detail: &str, snippet: &str) -> Builder { | 14 | fn postfix_reference(ctx: &CompletionContext, label: &str, detail: &str, snippet: &str) -> Builder { |