From cca5f862de8a4eb4a8990fdca95a4a7686937789 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 1 Nov 2018 16:18:53 +0300 Subject: Don't order import alphabetical alphabetical ordering is no more consistent, and much less useful then the ordering which arises naturally when you add import. --- crates/ra_analysis/src/lib.rs | 8 ++++---- crates/ra_syntax/src/reparsing.rs | 2 +- rustfmt.toml | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index d21be3a88..6565f69fb 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs @@ -9,14 +9,14 @@ extern crate relative_path; extern crate rustc_hash; extern crate salsa; -mod completion; mod db; -mod descriptors; -mod imp; mod input; -pub mod mock_analysis; +mod imp; +mod completion; +mod descriptors; mod symbol_index; mod syntax_ptr; +pub mod mock_analysis; use std::{fmt, sync::Arc}; diff --git a/crates/ra_syntax/src/reparsing.rs b/crates/ra_syntax/src/reparsing.rs index d3b9a30d6..b3b51b3e4 100644 --- a/crates/ra_syntax/src/reparsing.rs +++ b/crates/ra_syntax/src/reparsing.rs @@ -188,7 +188,7 @@ mod tests { use super::{ super::{test_utils::extract_range, text_utils::replace_range, utils::dump_tree, File}, reparse_block, reparse_leaf, AtomEdit, GreenNode, SyntaxError, SyntaxNodeRef, - }; +}; fn do_check(before: &str, replace_with: &str, reparser: F) where diff --git a/rustfmt.toml b/rustfmt.toml index e69de29bb..9a271df7b 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -0,0 +1,2 @@ +reorder_imports = false +reorder_modules = false \ No newline at end of file -- cgit v1.2.3