(i: &str)
| 64 | } |
| 65 | |
| 66 | fn parse_number_unit(i: &str) -> IResult<&str, Duration> { |
| 67 | let (i, num) = double(i)?; |
| 68 | let (i, unit) = parse_unit(i)?; |
| 69 | let duration = to_duration(num, unit); |
| 70 | Ok((i, duration)) |
| 71 | } |
| 72 | |
| 73 | fn parse_negative(i: &str) -> IResult<&str, ()> { |
| 74 | let (i, _): (&str, char) = char('-')(i)?; |
nothing calls this directly
no test coverage detected