1
Fork 0

Remove unnecessary braces on PatWithOr patterns.

This commit is contained in:
Nicholas Nethercote 2023-08-10 20:11:22 +10:00
parent 4ab3e9d5b9
commit acd3a5e35f
2 changed files with 5 additions and 5 deletions

View file

@ -1328,7 +1328,7 @@ fn is_in_follow(tok: &mbe::TokenTree, kind: NonterminalKind) -> IsInFollow {
_ => IsInFollow::No(TOKENS),
}
}
NonterminalKind::PatWithOr { .. } => {
NonterminalKind::PatWithOr => {
const TOKENS: &[&str] = &["`=>`", "`,`", "`=`", "`if`", "`in`"];
match tok {
TokenTree::Token(token) => match token.kind {