Explicitly say that the assist removes *redundant* parentheses
This commit is contained in:
parent
ab061945a1
commit
2870b01ec0
@ -4,7 +4,7 @@
|
||||
|
||||
// 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 New Issue
Block a user