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_assists/src/add_explicit_type.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'crates/ra_assists/src/add_explicit_type.rs') diff --git a/crates/ra_assists/src/add_explicit_type.rs b/crates/ra_assists/src/add_explicit_type.rs index f3ed74b7f..bb47a32f0 100644 --- a/crates/ra_assists/src/add_explicit_type.rs +++ b/crates/ra_assists/src/add_explicit_type.rs @@ -1,13 +1,10 @@ -use hir::{ - HirDisplay, Ty, - db::HirDatabase, -}; +use hir::{db::HirDatabase, HirDisplay, Ty}; use ra_syntax::{ + ast::{AstNode, LetStmt, NameOwner, PatKind}, T, - ast::{LetStmt, PatKind, NameOwner, AstNode} }; -use crate::{AssistCtx, Assist, AssistId}; +use crate::{Assist, AssistCtx, AssistId}; /// Add explicit type assist. pub(crate) fn add_explicit_type(mut ctx: AssistCtx) -> Option { @@ -56,7 +53,7 @@ fn is_unknown(ty: &Ty) -> bool { mod tests { use super::*; - use crate::helpers::{ check_assist, check_assist_target, check_assist_not_applicable }; + use crate::helpers::{check_assist, check_assist_not_applicable, check_assist_target}; #[test] fn add_explicit_type_target() { -- cgit v1.2.3