Skip to content

Commit

Permalink
Generalize error type for "position"
Browse files Browse the repository at this point in the history
  • Loading branch information
freebroccolo authored and progval committed Dec 18, 2019
1 parent 946c9d5 commit 7eb8155
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,9 @@ macro_rules! position {
}

/// Capture the position of the current fragment
pub fn position<T>(s: T) -> IResult<T, T>
pub fn position<T, E>(s: T) -> IResult<T, T, E>
where
E: ParseError<T>,
T: InputIter + InputTake,
{
nom::bytes::complete::take(0usize)(s)
Expand Down

0 comments on commit 7eb8155

Please sign in to comment.