aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_assists/src/handlers/merge_imports.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/crates/ra_assists/src/handlers/merge_imports.rs b/crates/ra_assists/src/handlers/merge_imports.rs
index ab1fb2a0b..b3101f3ab 100644
--- a/crates/ra_assists/src/handlers/merge_imports.rs
+++ b/crates/ra_assists/src/handlers/merge_imports.rs
@@ -3,8 +3,7 @@ use std::iter::successors;
3use ra_syntax::{ 3use ra_syntax::{
4 algo::{neighbor, SyntaxRewriter}, 4 algo::{neighbor, SyntaxRewriter},
5 ast::{self, edit::AstNodeEdit, make}, 5 ast::{self, edit::AstNodeEdit, make},
6 AstNode, Direction, InsertPosition, NodeOrToken, SyntaxElement, SyntaxKind, SyntaxToken, Token, 6 AstNode, Direction, InsertPosition, NodeOrToken, SyntaxElement, T,
7 T,
8}; 7};
9 8
10use crate::{Assist, AssistCtx, AssistId}; 9use crate::{Assist, AssistCtx, AssistId};
@@ -269,15 +268,15 @@ use {
269 check_assist( 268 check_assist(
270 merge_imports, 269 merge_imports,
271 r" 270 r"
272use hyper::service::make_service_fn; 271use foo::bar::baz;
273use hyper::<|>{ 272use foo::<|>{
274 StatusCode, 273 FooBar,
275}; 274};
276", 275",
277 r" 276 r"
278use hyper::{<|> 277use foo::{<|>
279 StatusCode, 278 FooBar,
280service::make_service_fn}; 279bar::baz};
281", 280",
282 ) 281 )
283 } 282 }