assist id fix

This commit is contained in:
Alex Vasilev 2023-01-21 00:47:02 +05:30
parent 1ab58b190e
commit dd9dcca7a2

View File

@ -32,7 +32,7 @@ pub(crate) fn add_braces(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<(
let (expr_type, expr) = get_replacement_node(ctx)?; let (expr_type, expr) = get_replacement_node(ctx)?;
acc.add( acc.add(
AssistId("wrap_with_braces", AssistKind::RefactorRewrite), AssistId("add_braces", AssistKind::RefactorRewrite),
match expr_type { match expr_type {
ParentType::ClosureExpr => "Add braces to lambda expression", ParentType::ClosureExpr => "Add braces to lambda expression",
ParentType::MatchArmExpr => "Add braces to arm expression", ParentType::MatchArmExpr => "Add braces to arm expression",