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/status.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/status.rs')
-rw-r--r-- | crates/ra_ide_api/src/status.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/crates/ra_ide_api/src/status.rs b/crates/ra_ide_api/src/status.rs index ce25f4a87..1bcba0b8b 100644 --- a/crates/ra_ide_api/src/status.rs +++ b/crates/ra_ide_api/src/status.rs | |||
@@ -1,20 +1,20 @@ | |||
1 | use std::{ | 1 | use std::{fmt, iter::FromIterator, sync::Arc}; |
2 | fmt, | ||
3 | iter::FromIterator, | ||
4 | sync::Arc, | ||
5 | }; | ||
6 | 2 | ||
7 | use ra_syntax::{TreeArc, SyntaxNode, Parse, AstNode}; | 3 | use hir::MacroFile; |
8 | use ra_db::{ | 4 | use ra_db::{ |
5 | salsa::{ | ||
6 | debug::{DebugQueryTable, TableEntry}, | ||
7 | Database, | ||
8 | }, | ||
9 | FileTextQuery, SourceRootId, | 9 | FileTextQuery, SourceRootId, |
10 | salsa::{Database, debug::{DebugQueryTable, TableEntry}}, | ||
11 | }; | 10 | }; |
12 | use ra_prof::{Bytes, memory_usage}; | 11 | use ra_prof::{memory_usage, Bytes}; |
13 | use hir::MacroFile; | 12 | use ra_syntax::{AstNode, Parse, SyntaxNode, TreeArc}; |
14 | 13 | ||
15 | use crate::{ | 14 | use crate::{ |
16 | FileId, db::RootDatabase, | 15 | db::RootDatabase, |
17 | symbol_index::{SymbolIndex, LibrarySymbolsQuery}, | 16 | symbol_index::{LibrarySymbolsQuery, SymbolIndex}, |
17 | FileId, | ||
18 | }; | 18 | }; |
19 | 19 | ||
20 | pub(crate) fn syntax_tree_stats(db: &RootDatabase) -> SyntaxTreeStats { | 20 | pub(crate) fn syntax_tree_stats(db: &RootDatabase) -> SyntaxTreeStats { |