Remove unnecessary braces on PatWithOr
patterns.
This commit is contained in:
parent
4ab3e9d5b9
commit
acd3a5e35f
2 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue