Skip to content

Commit 2e279ca

Browse files
committed
Generalize test and clean up imports
1 parent abdf725 commit 2e279ca

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

crates/ra_assists/src/handlers/merge_imports.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ use std::iter::successors;
33
use ra_syntax::{
44
algo::{neighbor, SyntaxRewriter},
55
ast::{self, edit::AstNodeEdit, make},
6-
AstNode, Direction, InsertPosition, NodeOrToken, SyntaxElement, SyntaxKind, SyntaxToken, Token,
7-
T,
6+
AstNode, Direction, InsertPosition, NodeOrToken, SyntaxElement, T,
87
};
98

109
use crate::{Assist, AssistCtx, AssistId};
@@ -269,15 +268,15 @@ use {
269268
check_assist(
270269
merge_imports,
271270
r"
272-
use hyper::service::make_service_fn;
273-
use hyper::<|>{
274-
StatusCode,
271+
use foo::bar::baz;
272+
use foo::<|>{
273+
FooBar,
275274
};
276275
",
277276
r"
278-
use hyper::{<|>
279-
StatusCode,
280-
service::make_service_fn};
277+
use foo::{<|>
278+
FooBar,
279+
bar::baz};
281280
",
282281
)
283282
}

0 commit comments

Comments
 (0)