diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-04 21:09:32 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-04 21:09:32 +0100 |
commit | cacdb0eab8131bfb945eb7ed0150c92ec56eefe2 (patch) | |
tree | f762de90ce813591bc640ae0bce36493a3dcafa9 /crates/ra_assists/src/add_explicit_type.rs | |
parent | 4e8664d9d37021e85d72b6228fa45e7edf4a1a74 (diff) | |
parent | 1834bae5b86c54ed9dece26e82436919d59e6cb7 (diff) |
Merge #1486
1486: allow rustfmt to reorder imports r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/add_explicit_type.rs')
-rw-r--r-- | crates/ra_assists/src/add_explicit_type.rs | 11 |
1 files changed, 4 insertions, 7 deletions
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 @@ | |||
1 | use hir::{ | 1 | use hir::{db::HirDatabase, HirDisplay, Ty}; |
2 | HirDisplay, Ty, | ||
3 | db::HirDatabase, | ||
4 | }; | ||
5 | use ra_syntax::{ | 2 | use ra_syntax::{ |
3 | ast::{AstNode, LetStmt, NameOwner, PatKind}, | ||
6 | T, | 4 | T, |
7 | ast::{LetStmt, PatKind, NameOwner, AstNode} | ||
8 | }; | 5 | }; |
9 | 6 | ||
10 | use crate::{AssistCtx, Assist, AssistId}; | 7 | use crate::{Assist, AssistCtx, AssistId}; |
11 | 8 | ||
12 | /// Add explicit type assist. | 9 | /// Add explicit type assist. |
13 | pub(crate) fn add_explicit_type(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> { | 10 | pub(crate) fn add_explicit_type(mut ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> { |
@@ -56,7 +53,7 @@ fn is_unknown(ty: &Ty) -> bool { | |||
56 | mod tests { | 53 | mod tests { |
57 | use super::*; | 54 | use super::*; |
58 | 55 | ||
59 | use crate::helpers::{ check_assist, check_assist_target, check_assist_not_applicable }; | 56 | use crate::helpers::{check_assist, check_assist_not_applicable, check_assist_target}; |
60 | 57 | ||
61 | #[test] | 58 | #[test] |
62 | fn add_explicit_type_target() { | 59 | fn add_explicit_type_target() { |