mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Generalize test and clean up imports
This commit is contained in:
parent
abdf725c55
commit
2e279ca031
@ -3,8 +3,7 @@ use std::iter::successors;
|
||||
use ra_syntax::{
|
||||
algo::{neighbor, SyntaxRewriter},
|
||||
ast::{self, edit::AstNodeEdit, make},
|
||||
AstNode, Direction, InsertPosition, NodeOrToken, SyntaxElement, SyntaxKind, SyntaxToken, Token,
|
||||
T,
|
||||
AstNode, Direction, InsertPosition, NodeOrToken, SyntaxElement, T,
|
||||
};
|
||||
|
||||
use crate::{Assist, AssistCtx, AssistId};
|
||||
@ -269,15 +268,15 @@ use {
|
||||
check_assist(
|
||||
merge_imports,
|
||||
r"
|
||||
use hyper::service::make_service_fn;
|
||||
use hyper::<|>{
|
||||
StatusCode,
|
||||
use foo::bar::baz;
|
||||
use foo::<|>{
|
||||
FooBar,
|
||||
};
|
||||
",
|
||||
r"
|
||||
use hyper::{<|>
|
||||
StatusCode,
|
||||
service::make_service_fn};
|
||||
use foo::{<|>
|
||||
FooBar,
|
||||
bar::baz};
|
||||
",
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user