Never parenthesize continue
This commit is contained in:
parent
72ac961616
commit
fe06c5dce1
2 changed files with 2 additions and 2 deletions
|
@ -1325,7 +1325,6 @@ impl Expr {
|
|||
}
|
||||
|
||||
ExprKind::Break(..)
|
||||
| ExprKind::Continue(..)
|
||||
| ExprKind::Ret(..)
|
||||
| ExprKind::Yield(..)
|
||||
| ExprKind::Yeet(..)
|
||||
|
@ -1359,6 +1358,7 @@ impl Expr {
|
|||
| ExprKind::Block(..)
|
||||
| ExprKind::Call(..)
|
||||
| ExprKind::ConstBlock(_)
|
||||
| ExprKind::Continue(..)
|
||||
| ExprKind::Field(..)
|
||||
| ExprKind::ForLoop { .. }
|
||||
| ExprKind::FormatArgs(..)
|
||||
|
|
|
@ -1705,7 +1705,6 @@ impl Expr<'_> {
|
|||
}
|
||||
|
||||
ExprKind::Break(..)
|
||||
| ExprKind::Continue(..)
|
||||
| ExprKind::Ret(..)
|
||||
| ExprKind::Yield(..)
|
||||
| ExprKind::Become(..) => ExprPrecedence::Jump,
|
||||
|
@ -1731,6 +1730,7 @@ impl Expr<'_> {
|
|||
| ExprKind::Block(..)
|
||||
| ExprKind::Call(..)
|
||||
| ExprKind::ConstBlock(_)
|
||||
| ExprKind::Continue(..)
|
||||
| ExprKind::Field(..)
|
||||
| ExprKind::If(..)
|
||||
| ExprKind::Index(..)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue