diff options
author | Aleksey Kladov <[email protected]> | 2019-07-04 21:05:17 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-04 21:09:09 +0100 |
commit | 1834bae5b86c54ed9dece26e82436919d59e6cb7 (patch) | |
tree | 92c8b984e874b67fa1831613464bbe356c1af3dd /crates/ra_ide_api/src/goto_definition.rs | |
parent | 2b2cd829b0f95aef338227deb05ec7503dae9b6c (diff) |
allow rustfmt to reorder imports
This wasn't a right decision in the first place, the feature flag was
broken in the last rustfmt release, and syntax highlighting of imports
is more important anyway
Diffstat (limited to 'crates/ra_ide_api/src/goto_definition.rs')
-rw-r--r-- | crates/ra_ide_api/src/goto_definition.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/goto_definition.rs b/crates/ra_ide_api/src/goto_definition.rs index 63ba6cf9d..08feed7dc 100644 --- a/crates/ra_ide_api/src/goto_definition.rs +++ b/crates/ra_ide_api/src/goto_definition.rs | |||
@@ -1,19 +1,18 @@ | |||
1 | use ra_db::{FileId, SourceDatabase}; | 1 | use ra_db::{FileId, SourceDatabase}; |
2 | use ra_syntax::{ | 2 | use ra_syntax::{ |
3 | AstNode, ast::{self, DocCommentsOwner}, | ||
4 | algo::{ | 3 | algo::{ |
5 | find_node_at_offset, | 4 | find_node_at_offset, |
6 | visit::{visitor, Visitor}, | 5 | visit::{visitor, Visitor}, |
7 | }, | 6 | }, |
8 | SyntaxNode, | 7 | ast::{self, DocCommentsOwner}, |
8 | AstNode, SyntaxNode, | ||
9 | }; | 9 | }; |
10 | 10 | ||
11 | use crate::{ | 11 | use crate::{ |
12 | FilePosition, NavigationTarget, | ||
13 | db::RootDatabase, | 12 | db::RootDatabase, |
14 | RangeInfo, | ||
15 | name_ref_kind::{NameRefKind::*, classify_name_ref}, | ||
16 | display::ShortLabel, | 13 | display::ShortLabel, |
14 | name_ref_kind::{classify_name_ref, NameRefKind::*}, | ||
15 | FilePosition, NavigationTarget, RangeInfo, | ||
17 | }; | 16 | }; |
18 | 17 | ||
19 | pub(crate) fn goto_definition( | 18 | pub(crate) fn goto_definition( |