We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52a220c commit d739731Copy full SHA for d739731
crates/ra_parser/src/grammar/expressions.rs
@@ -50,10 +50,8 @@ fn expr_no_struct(p: &mut Parser) {
50
}
51
52
fn is_expr_stmt_attr_allowed(kind: SyntaxKind) -> bool {
53
- match kind {
54
- BIN_EXPR | RANGE_EXPR | IF_EXPR => false,
55
- _ => true,
56
- }
+ let forbid = matches!(kind, BIN_EXPR | RANGE_EXPR);
+ !forbid
57
58
59
pub(super) fn stmt(p: &mut Parser, with_semi: StmtWithSemi) {
0 commit comments