Skip to content

Commit 50e678f

Browse files
authored
Make Clippy happy with Rust 1.75 (#332)
1 parent 81ede4a commit 50e678f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

impl/src/parsing.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ pub fn seq<const N: usize>(
175175
pub fn alt<const N: usize>(
176176
mut parsers: [&mut dyn FnMut(Cursor<'_>) -> ParsingResult<'_>; N],
177177
) -> impl FnMut(Cursor<'_>) -> ParsingResult<'_> + '_ {
178-
move |c| {
179-
parsers
180-
.iter_mut()
181-
.find_map(|parser| parser(c).map(|(s, c)| (s, c)))
182-
}
178+
move |c| parsers.iter_mut().find_map(|parser| parser(c))
183179
}
184180

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

0 commit comments

Comments
 (0)