From 1834bae5b86c54ed9dece26e82436919d59e6cb7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 4 Jul 2019 23:05:17 +0300 Subject: 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 --- crates/ra_ide_api/src/lib.rs | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'crates/ra_ide_api/src/lib.rs') diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 817e65df0..95de9bcb8 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs @@ -46,33 +46,35 @@ mod test_utils; use std::sync::Arc; -use ra_syntax::{SourceFile, TreeArc, TextRange, TextUnit}; -use ra_text_edit::TextEdit; use ra_db::{ - SourceDatabase, CheckCanceled, salsa::{self, ParallelDatabase}, + CheckCanceled, SourceDatabase, }; +use ra_syntax::{SourceFile, TextRange, TextUnit, TreeArc}; +use ra_text_edit::TextEdit; use relative_path::RelativePathBuf; -use crate::{symbol_index::FileSymbol, db::LineIndexDatabase}; +use crate::{db::LineIndexDatabase, symbol_index::FileSymbol}; pub use crate::{ + assists::{Assist, AssistId}, change::{AnalysisChange, LibraryData}, completion::{CompletionItem, CompletionItemKind, InsertTextFormat}, - runnables::{Runnable, RunnableKind}, - references::ReferenceSearchResult, - assists::{Assist, AssistId}, - hover::{HoverResult}, - line_index::{LineIndex, LineCol}, - line_index_utils::translate_offset_with_edit, + diagnostics::Severity, + display::{file_structure, FunctionSignature, NavigationTarget, StructureNode}, folding_ranges::{Fold, FoldKind}, + hover::HoverResult, + line_index::{LineCol, LineIndex}, + line_index_utils::translate_offset_with_edit, + references::ReferenceSearchResult, + runnables::{Runnable, RunnableKind}, syntax_highlighting::HighlightedRange, - diagnostics::Severity, - display::{FunctionSignature, NavigationTarget, StructureNode, file_structure}, }; -pub use ra_db::{Canceled, CrateGraph, CrateId, FileId, FilePosition, FileRange, SourceRootId, Edition}; pub use hir::Documentation; +pub use ra_db::{ + Canceled, CrateGraph, CrateId, Edition, FileId, FilePosition, FileRange, SourceRootId, +}; pub type Cancelable = Result; -- cgit v1.2.3