Skip to content

Commit

Permalink
Fix test failures in nom_recipes doc tests (#1772)
Browse files Browse the repository at this point in the history
Test failures occured due to Parser trait changes and updates to delimited signature, with some recipes not having been updated accordingly
  • Loading branch information
rlee287 authored Aug 4, 2024
1 parent 561fb6b commit 29c48cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/nom_recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ use nom::{
/// trailing whitespace, returning the output of `inner`.
pub fn ws<'a, O, E: ParseError<&'a str>, F>(
inner: F,
) -> impl FnMut(&'a str) -> IResult<&'a str, O, E>
) -> impl Parser<&'a str, Output = O, Error = E>
where
F: Parser<&'a str, O, E>,
F: Parser<&'a str, Output = O, Error = E>,
{
delimited(multispace0, inner, multispace0)
}
Expand Down

0 comments on commit 29c48cc

Please sign in to comment.