Skip to content

Commit

Permalink
Prevent fold_many1!() from turning a Failure into an Error.
Browse files Browse the repository at this point in the history
  • Loading branch information
progval authored and Geal committed Aug 18, 2018
1 parent 54a9581 commit 66c9585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ macro_rules! fold_many1(
}

match failure {
$crate::lib::std::option::Option::Some(e) => Err(Err::Error(e)),
$crate::lib::std::option::Option::Some(e) => Err(Err::Failure(e)),
$crate::lib::std::option::Option::None => match incomplete {
$crate::lib::std::option::Option::Some(i) => $crate::need_more($i, i),
$crate::lib::std::option::Option::None => Ok((input, acc))
Expand Down

0 comments on commit 66c9585

Please sign in to comment.