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/change.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/change.rs')
-rw-r--r-- | crates/ra_ide_api/src/change.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs index c0c289335..2a1af0a0a 100644 --- a/crates/ra_ide_api/src/change.rs +++ b/crates/ra_ide_api/src/change.rs | |||
@@ -1,22 +1,19 @@ | |||
1 | use std::{ | 1 | use std::{fmt, sync::Arc, time}; |
2 | fmt, time, | ||
3 | sync::Arc, | ||
4 | }; | ||
5 | 2 | ||
6 | use rustc_hash::FxHashMap; | ||
7 | use ra_db::{ | 3 | use ra_db::{ |
8 | SourceRootId, FileId, CrateGraph, SourceDatabase, SourceRoot, | ||
9 | salsa::{Database, SweepStrategy}, | 4 | salsa::{Database, SweepStrategy}, |
5 | CrateGraph, FileId, SourceDatabase, SourceRoot, SourceRootId, | ||
10 | }; | 6 | }; |
7 | use ra_prof::{memory_usage, profile, Bytes}; | ||
11 | use ra_syntax::SourceFile; | 8 | use ra_syntax::SourceFile; |
12 | use ra_prof::{profile, Bytes, memory_usage}; | ||
13 | use relative_path::RelativePathBuf; | ||
14 | use rayon::prelude::*; | 9 | use rayon::prelude::*; |
10 | use relative_path::RelativePathBuf; | ||
11 | use rustc_hash::FxHashMap; | ||
15 | 12 | ||
16 | use crate::{ | 13 | use crate::{ |
17 | db::RootDatabase, | 14 | db::RootDatabase, |
18 | symbol_index::{SymbolIndex, SymbolsDatabase}, | ||
19 | status::syntax_tree_stats, | 15 | status::syntax_tree_stats, |
16 | symbol_index::{SymbolIndex, SymbolsDatabase}, | ||
20 | }; | 17 | }; |
21 | 18 | ||
22 | #[derive(Default)] | 19 | #[derive(Default)] |