[sc-441] Fix CI warnings

This commit is contained in:
Nicolas Abril 2024-02-27 22:01:08 +01:00
parent 0fc957ea6e
commit 7b859fc41e
2 changed files with 5 additions and 6 deletions

View File

@ -42,6 +42,7 @@
"namegen", "namegen",
"nams", "nams",
"numop", "numop",
"nums",
"oper", "oper",
"opre", "opre",
"oprune", "oprune",

View File

@ -405,12 +405,10 @@ where
.map(Pattern::Lst) .map(Pattern::Lst)
.boxed(); .boxed();
let num_val = any() let num_val = any().filter(|t| matches!(t, Token::Num(_))).map(|t| {
.filter(|t| matches!(t, Token::Num(_))) let Token::Num(n) = t else { unreachable!() };
.map(|t| { n
let Token::Num(n) = t else { unreachable!() }; });
n
});
let num = num_val.map(|n| Pattern::Num(NumCtr::Num(n))).labelled("<Num>"); let num = num_val.map(|n| Pattern::Num(NumCtr::Num(n))).labelled("<Num>");