mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
fix: Correct grammar in remove all unused imports assist
This commit is contained in:
parent
b0552d779f
commit
333808877b
@ -117,7 +117,7 @@ pub(crate) fn remove_unused_imports(acc: &mut Assists, ctx: &AssistContext<'_>)
|
|||||||
if unused.peek().is_some() {
|
if unused.peek().is_some() {
|
||||||
acc.add(
|
acc.add(
|
||||||
AssistId::quick_fix("remove_unused_imports"),
|
AssistId::quick_fix("remove_unused_imports"),
|
||||||
"Remove all the unused imports",
|
"Remove all unused imports",
|
||||||
selected_el.text_range(),
|
selected_el.text_range(),
|
||||||
|builder| {
|
|builder| {
|
||||||
let unused: Vec<ast::UseTree> = unused.map(|x| builder.make_mut(x)).collect();
|
let unused: Vec<ast::UseTree> = unused.map(|x| builder.make_mut(x)).collect();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user