[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",
"nams",
"numop",
"nums",
"oper",
"opre",
"oprune",

View File

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