Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add map functions for Error<> and Info<> ranges. (Marwes#86)
It's possible to `map_err_range` for `ParseResult<>` too, but it's awkward because the output type needs to be a compatible `StreamOnce`. As suggested in Marwes#86 (comment), it's probably best to either change the parse result type entirely, or wait for rust-lang/rust#21903. This at least helps consumers convert `ParseError<>` into something that can implement `std::fmt::Display`.
- Loading branch information