Skip to content

Commit

Permalink
update for new clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
developedby committed Feb 22, 2025
1 parent 4c865bc commit 7fd742b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fun/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,7 @@ impl<'a> FunParser<'a> {
// ( * ) -> Era
// ( opr -> Num Op
if let Some(opr) = self.try_parse_oper() {
if (opr == Op::ADD || opr == Op::SUB) && self.peek_one().map_or(false, |c| "0123456789".contains(c))
{
if (opr == Op::ADD || opr == Op::SUB) && self.peek_one().is_some_and(|c| "0123456789".contains(c)) {
unexpected_tag(self)?;
*self.index() -= 1;
let num = self.parse_number()?;
Expand Down

0 comments on commit 7fd742b

Please sign in to comment.