aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/handlers/auto_import.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-19 11:37:00 +0000
committerGitHub <[email protected]>2020-03-19 11:37:00 +0000
commit774043759f2946daa502a46e9cc1fc43c5e9b432 (patch)
tree34d7998fd43c0723fce407041c2b0ee9f2580001 /crates/ra_assists/src/handlers/auto_import.rs
parent525feb0acd1916f635dbfe65592123bb2844a9ee (diff)
parent7e2bca4ec356655fe47d50b466c34c34e7cae565 (diff)
Merge #3652
3652: Cleanup imports r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/handlers/auto_import.rs')
-rw-r--r--crates/ra_assists/src/handlers/auto_import.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/ra_assists/src/handlers/auto_import.rs b/crates/ra_assists/src/handlers/auto_import.rs
index 4b62aac48..bb280f633 100644
--- a/crates/ra_assists/src/handlers/auto_import.rs
+++ b/crates/ra_assists/src/handlers/auto_import.rs
@@ -1,8 +1,5 @@
1use crate::{ 1use std::collections::BTreeSet;
2 assist_ctx::{Assist, AssistCtx}, 2
3 utils::insert_use_statement,
4 AssistId,
5};
6use hir::{ 3use hir::{
7 AsAssocItem, AssocItemContainer, ModPath, Module, ModuleDef, PathResolution, Semantics, Trait, 4 AsAssocItem, AssocItemContainer, ModPath, Module, ModuleDef, PathResolution, Semantics, Trait,
8 Type, 5 Type,
@@ -14,7 +11,12 @@ use ra_syntax::{
14 SyntaxNode, 11 SyntaxNode,
15}; 12};
16use rustc_hash::FxHashSet; 13use rustc_hash::FxHashSet;
17use std::collections::BTreeSet; 14
15use crate::{
16 assist_ctx::{Assist, AssistCtx},
17 utils::insert_use_statement,
18 AssistId,
19};
18 20
19// Assist: auto_import 21// Assist: auto_import
20// 22//