rs-versions
rs-versions copied to clipboard
Bug with parser::unsigned
pub(crate) fn unsigned(i: &str) -> IResult<&str, u32> {
map_res(alt((tag("0"), digit1)), |s: &str| s.parse::
parses strings such as 01 02 etc correctly in the sense that it returns the right number, however, it does not advance the string by the actual number of consumed letters. Instead it only consumed the 0 but leaves the rest (1 or 2).
Thanks, I will double-check this.