Skip to content

Commit babd4c7

Browse files
committed
Don't panic in Expr::needs_parens_in
1 parent 7ed0871 commit babd4c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/syntax/src/ast/prec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl Expr {
2121
ast::StmtList(_) => self.needs_parens_in_stmt(None),
2222
ast::ArgList(_) => false,
2323
ast::MatchArm(_) => false,
24-
_ => unimplemented!()
24+
_ => false,
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)