diff options
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/completion/complete_dot.rs | 4 | ||||
-rw-r--r-- | crates/ra_ide/src/completion/presentation.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/completion/complete_dot.rs b/crates/ra_ide/src/completion/complete_dot.rs index ee4e24fca..520652a37 100644 --- a/crates/ra_ide/src/completion/complete_dot.rs +++ b/crates/ra_ide/src/completion/complete_dot.rs | |||
@@ -1,6 +1,7 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! Completes references after dot (fields and method calls). |
2 | 2 | ||
3 | use hir::{HasVisibility, Type}; | 3 | use hir::{HasVisibility, Type}; |
4 | use rustc_hash::FxHashSet; | ||
4 | 5 | ||
5 | use crate::{ | 6 | use crate::{ |
6 | completion::{ | 7 | completion::{ |
@@ -9,7 +10,6 @@ use crate::{ | |||
9 | }, | 10 | }, |
10 | CompletionItem, | 11 | CompletionItem, |
11 | }; | 12 | }; |
12 | use rustc_hash::FxHashSet; | ||
13 | 13 | ||
14 | /// Complete dot accesses, i.e. fields or methods (and .await syntax). | 14 | /// Complete dot accesses, i.e. fields or methods (and .await syntax). |
15 | pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) { | 15 | pub(super) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) { |
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index ee810b59f..bd48156b0 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs | |||
@@ -1,4 +1,5 @@ | |||
1 | //! This modules takes care of rendering various definitions as completion items. | 1 | //! This modules takes care of rendering various definitions as completion items. |
2 | //! It also handles scoring (sorting) completions. | ||
2 | 3 | ||
3 | use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type}; | 4 | use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type}; |
4 | use ra_syntax::ast::NameOwner; | 5 | use ra_syntax::ast::NameOwner; |