mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Generalize test and clean up imports
This commit is contained in:
parent
abdf725c55
commit
2e279ca031
1 changed files with 7 additions and 8 deletions
|
@ -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 a new issue