diff options
author | Evgenii P <[email protected]> | 2019-08-04 01:56:29 +0100 |
---|---|---|
committer | Evgenii P <[email protected]> | 2019-08-04 01:56:29 +0100 |
commit | 4034ea9e4ebe2959327ddbf6c1d1e3103dd01f80 (patch) | |
tree | dfbc91c36531d7758b706463b13fdaa7f95fa2a8 /crates/ra_hir | |
parent | 6a94f203fc5e2dc6f48a592c26b48f3a98638d77 (diff) |
source_binder.rs: fix order of imports
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 6a9f228b8..cf9a9e108 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs | |||
@@ -7,6 +7,16 @@ | |||
7 | /// purely for "IDE needs". | 7 | /// purely for "IDE needs". |
8 | use std::sync::Arc; | 8 | use std::sync::Arc; |
9 | 9 | ||
10 | use ra_db::{FileId, FilePosition}; | ||
11 | use ra_syntax::{ | ||
12 | algo::find_node_at_offset, | ||
13 | ast::{self, AstNode, NameOwner}, | ||
14 | AstPtr, | ||
15 | SyntaxKind::*, | ||
16 | SyntaxNode, SyntaxNodePtr, TextRange, TextUnit, | ||
17 | }; | ||
18 | use rustc_hash::{FxHashMap, FxHashSet}; | ||
19 | |||
10 | use crate::{ | 20 | use crate::{ |
11 | expr::{ | 21 | expr::{ |
12 | self, | 22 | self, |
@@ -21,15 +31,6 @@ use crate::{ | |||
21 | MacroDef, Module, ModuleDef, Name, Path, PerNs, Resolution, Resolver, Static, Struct, Trait, | 31 | MacroDef, Module, ModuleDef, Name, Path, PerNs, Resolution, Resolver, Static, Struct, Trait, |
22 | Ty, | 32 | Ty, |
23 | }; | 33 | }; |
24 | use ra_db::{FileId, FilePosition}; | ||
25 | use ra_syntax::{ | ||
26 | algo::find_node_at_offset, | ||
27 | ast::{self, AstNode, NameOwner}, | ||
28 | AstPtr, | ||
29 | SyntaxKind::*, | ||
30 | SyntaxNode, SyntaxNodePtr, TextRange, TextUnit, | ||
31 | }; | ||
32 | use rustc_hash::{FxHashMap, FxHashSet}; | ||
33 | 34 | ||
34 | /// Locates the module by `FileId`. Picks topmost module in the file. | 35 | /// Locates the module by `FileId`. Picks topmost module in the file. |
35 | pub fn module_from_file_id(db: &impl HirDatabase, file_id: FileId) -> Option<Module> { | 36 | pub fn module_from_file_id(db: &impl HirDatabase, file_id: FileId) -> Option<Module> { |