Skip to content

Commit

Permalink
Make Clippy happy with Rust 1.75 (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Jan 15, 2024
1 parent 81ede4a commit 50e678f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions impl/src/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,7 @@ pub fn seq<const N: usize>(
pub fn alt<const N: usize>(
mut parsers: [&mut dyn FnMut(Cursor<'_>) -> ParsingResult<'_>; N],
) -> impl FnMut(Cursor<'_>) -> ParsingResult<'_> + '_ {
move |c| {
parsers
.iter_mut()
.find_map(|parser| parser(c).map(|(s, c)| (s, c)))
}
move |c| parsers.iter_mut().find_map(|parser| parser(c))
}

/// Parses with `basic` while `until` fails. Returns [`None`] in case
Expand Down

0 comments on commit 50e678f

Please sign in to comment.