Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/codegen/grammar.rs')
-rw-r--r--xtask/src/codegen/grammar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/grammar.rs b/xtask/src/codegen/grammar.rs
index 035891dcbe..d5fe323678 100644
--- a/xtask/src/codegen/grammar.rs
+++ b/xtask/src/codegen/grammar.rs
@@ -884,7 +884,7 @@ fn lower_separated_list(
if !matches!(
repeat.as_slice(),
[comma, nt_]
- if trailing_sep.map_or(true, |it| comma == &**it) && match (nt, nt_) {
+ if trailing_sep.is_none_or(|it| comma == &**it) && match (nt, nt_) {
(Either::Left(node), Rule::Node(nt_)) => node == nt_,
(Either::Right(token), Rule::Token(nt_)) => token == nt_,
_ => false,