fn nomify<'input, T>(
    input: &'input [u8],
    result: Result<(&'input [u8], T), LEB128Error>,
) -> IResult<&'input [u8], T> {
    match result {
        Ok(value) => Ok(value),
        Err(_) => Err(nom::Err::Failure(nom::error::Error::new(
            input,
            nom::error::ErrorKind::MapRes,
        ))),
    }
}
/// Transforms an LEB-128 encoding error into a nom parser error.
Transforms an LEB-128 encoding error into a nom parser error.
Transforms an LEB - 128 encoding error into a nom parser error .
fn nomify<'input, T>(
    input: &'input [u8],
    result: Result<(&'input [u8], T), LEB128Error>,
) -> IResult<&'input [u8], T> {
    match result {
        Ok(value) => Ok(value),
        Err(_) => Err(nom::Err::Failure(nom::error::Error::new(
            input,
            nom::error::ErrorKind::MapRes,
        ))),
    }
}
fn nomify < ' input , T > ( input : & ' input [ u8 ] , result : Result < ( & ' input [ u8 ] , T ) , LEB128Error > , ) -> IResult < & ' input [ u8 ] , T > { match result { Ok ( value ) => Ok ( value ) , Err ( _ ) => Err ( nom :: Err :: Failure ( nom :: error :: Error :: new ( input , nom :: error :: ErrorKind :: MapRes , ) ) ) , } }
Transforms an LEB-128 encoding error into a nom parser error.
Transforms an LEB - 128 encoding error into a nom parser error .
input
&'input [u8]
result
Result<(&'input [u8], T), LEB128Error>
input
&'input [u8]
result
Result<(&'input [u8], T), LEB128Error>