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_hir/src/nameres/raw.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'crates/ra_hir/src/nameres/raw.rs') diff --git a/crates/ra_hir/src/nameres/raw.rs b/crates/ra_hir/src/nameres/raw.rs index a0afe282c..7ea59cb75 100644 --- a/crates/ra_hir/src/nameres/raw.rs +++ b/crates/ra_hir/src/nameres/raw.rs @@ -1,13 +1,16 @@ -use std::{sync::Arc, ops::Index}; +use std::{ops::Index, sync::Arc}; -use test_utils::tested_by; -use ra_arena::{Arena, impl_arena_id, RawId, map::ArenaMap}; +use ra_arena::{impl_arena_id, map::ArenaMap, Arena, RawId}; use ra_syntax::{ - AstNode, SourceFile, AstPtr, TreeArc, - ast::{self, NameOwner, AttrsOwner}, + ast::{self, AttrsOwner, NameOwner}, + AstNode, AstPtr, SourceFile, TreeArc, }; +use test_utils::tested_by; -use crate::{DefDatabase, Name, AsName, Path, HirFileId, ModuleSource, AstIdMap, FileAstId, Either, AstDatabase}; +use crate::{ + AsName, AstDatabase, AstIdMap, DefDatabase, Either, FileAstId, HirFileId, ModuleSource, Name, + Path, +}; /// `RawItems` is a set of top-level items in a file (except for impls). /// -- cgit v1.2.3