Don't panic in Expr::needs_parens_in

This commit is contained in:
Maybe Waffle 2022-12-20 15:16:26 +00:00
parent 7ed0871ff6
commit babd4c7f7d

View File

@ -21,7 +21,7 @@ pub fn needs_parens_in(&self, parent: SyntaxNode) -> bool {
ast::StmtList(_) => self.needs_parens_in_stmt(None),
ast::ArgList(_) => false,
ast::MatchArm(_) => false,
_ => unimplemented!()
_ => false,
}
}
}