]> git.lizzy.rs Git - rust.git/commitdiff
Don't order import alphabetical
authorAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 1 Nov 2018 13:18:53 +0000 (16:18 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 1 Nov 2018 13:18:53 +0000 (16:18 +0300)
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
crates/ra_syntax/src/reparsing.rs
rustfmt.toml

index d21be3a88c3905a8b66760ccfe7b8d19aed38e6c..6565f69fbb90cf1b3036a9bd72032438e1b2ccdf 100644 (file)
@@ -9,14 +9,14 @@
 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};
 
index d3b9a30d677c1b648a54781a022937bded2ee656..b3b51b3e48658aaca6b2f9b68eff4600241cea13 100644 (file)
@@ -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<F>(before: &str, replace_with: &str, reparser: F)
     where
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..9a271df7b93f151e637019899a35abf4da710a38 100644 (file)
@@ -0,0 +1,2 @@
+reorder_imports = false
+reorder_modules = false
\ No newline at end of file