Merge #10237
10237: fix: Do not wrap inlined local in parens when at block tail position r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
62288f57cb
@ -107,6 +107,7 @@ pub(crate) fn inline_local_variable(acc: &mut Assists, ctx: &AssistContext) -> O
|
||||
| ast::Expr::BreakExpr(_)
|
||||
| ast::Expr::ReturnExpr(_)
|
||||
| ast::Expr::MatchExpr(_)
|
||||
| ast::Expr::BlockExpr(_)
|
||||
);
|
||||
Some((range, name_ref, !(initializer || parent)))
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user