Skip to content

Commit

Permalink
[sc-441] Fix CI warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
developedby committed Feb 27, 2024
1 parent 0fc957e commit 7b859fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"namegen",
"nams",
"numop",
"nums",
"oper",
"opre",
"oprune",
Expand Down
10 changes: 4 additions & 6 deletions src/term/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>");

Expand Down

0 comments on commit 7b859fc

Please sign in to comment.