mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Explicitly say that the assist removes *redundant* parentheses
This commit is contained in:
parent
ab061945a1
commit
2870b01ec0
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists};
|
|||
|
||||
// Assist: remove_parentheses
|
||||
//
|
||||
// Removes useless parentheses.
|
||||
// Removes redundant parentheses.
|
||||
//
|
||||
// ```
|
||||
// fn main() {
|
||||
|
@ -51,7 +51,7 @@ pub(crate) fn remove_parentheses(acc: &mut Assists, ctx: &AssistContext<'_>) ->
|
|||
let target = parens.syntax().text_range();
|
||||
acc.add(
|
||||
AssistId("remove_parentheses", AssistKind::Refactor),
|
||||
"Remove parentheses",
|
||||
"Remove redundant parentheses",
|
||||
target,
|
||||
|builder| {
|
||||
builder.delete(TextRange::new(delete_from_l, delete_to_l));
|
||||
|
|
Loading…
Reference in a new issue