summaryrefslogtreecommitdiff
path: root/src/parsers.rs
blob: c33a3cc9f9f3fc0686ee128565b82953c3cfb343 (plain)
1
2
3
4
5
6
use nom::{character::complete::digit1, combinator::map_res, IResult};
use std::str::FromStr;

pub fn u64(input: &str) -> IResult<&str, u64> {
    map_res(digit1, u64::from_str)(input)
}