Skip to content

Commit cca5f86

Browse files
committed
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.
1 parent c74e865 commit cca5f86

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

crates/ra_analysis/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ extern crate relative_path;
99
extern crate rustc_hash;
1010
extern crate salsa;
1111

12-
mod completion;
1312
mod db;
14-
mod descriptors;
15-
mod imp;
1613
mod input;
17-
pub mod mock_analysis;
14+
mod imp;
15+
mod completion;
16+
mod descriptors;
1817
mod symbol_index;
1918
mod syntax_ptr;
19+
pub mod mock_analysis;
2020

2121
use std::{fmt, sync::Arc};
2222

crates/ra_syntax/src/reparsing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ mod tests {
188188
use super::{
189189
super::{test_utils::extract_range, text_utils::replace_range, utils::dump_tree, File},
190190
reparse_block, reparse_leaf, AtomEdit, GreenNode, SyntaxError, SyntaxNodeRef,
191-
};
191+
};
192192

193193
fn do_check<F>(before: &str, replace_with: &str, reparser: F)
194194
where

rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
reorder_imports = false
2+
reorder_modules = false

0 commit comments

Comments
 (0)