diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-04 21:09:32 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-04 21:09:32 +0100 |
commit | cacdb0eab8131bfb945eb7ed0150c92ec56eefe2 (patch) | |
tree | f762de90ce813591bc640ae0bce36493a3dcafa9 /crates/ra_ide_api/src/completion.rs | |
parent | 4e8664d9d37021e85d72b6228fa45e7edf4a1a74 (diff) | |
parent | 1834bae5b86c54ed9dece26e82436919d59e6cb7 (diff) |
Merge #1486
1486: allow rustfmt to reorder imports r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_ide_api/src/completion.rs b/crates/ra_ide_api/src/completion.rs index 3a75bbf92..c23b5da59 100644 --- a/crates/ra_ide_api/src/completion.rs +++ b/crates/ra_ide_api/src/completion.rs | |||
@@ -14,19 +14,19 @@ mod complete_postfix; | |||
14 | 14 | ||
15 | use ra_db::SourceDatabase; | 15 | use ra_db::SourceDatabase; |
16 | 16 | ||
17 | #[cfg(test)] | ||
18 | use crate::completion::completion_item::{check_completion, do_completion}; | ||
17 | use crate::{ | 19 | use crate::{ |
18 | db, | ||
19 | FilePosition, | ||
20 | completion::{ | 20 | completion::{ |
21 | completion_item::{Completions, CompletionKind}, | ||
22 | completion_context::CompletionContext, | 21 | completion_context::CompletionContext, |
22 | completion_item::{CompletionKind, Completions}, | ||
23 | }, | 23 | }, |
24 | 24 | db, FilePosition, | |
25 | }; | 25 | }; |
26 | #[cfg(test)] | ||
27 | use crate::completion::completion_item::{do_completion, check_completion}; | ||
28 | 26 | ||
29 | pub use crate::completion::completion_item::{CompletionItem, CompletionItemKind, InsertTextFormat}; | 27 | pub use crate::completion::completion_item::{ |
28 | CompletionItem, CompletionItemKind, InsertTextFormat, | ||
29 | }; | ||
30 | 30 | ||
31 | /// Main entry point for completion. We run completion as a two-phase process. | 31 | /// Main entry point for completion. We run completion as a two-phase process. |
32 | /// | 32 | /// |