diff options
author | Evgenii P <[email protected]> | 2019-08-02 19:16:20 +0100 |
---|---|---|
committer | Evgenii P <[email protected]> | 2019-08-02 19:16:20 +0100 |
commit | 30bc3b93bec06256350b66869f2885ee71c3bedd (patch) | |
tree | 87422290ad2ea1a85f1805a2e9431b2983f0974c /crates/ra_ide_api/src | |
parent | c417b98f02004a10819111903882482b39e50d17 (diff) |
rustfmt
Diffstat (limited to 'crates/ra_ide_api/src')
-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 { |