summaryrefslogtreecommitdiff
path: root/src/parsers.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2021-12-02 09:19:49 +0200
committerJustin Wernick <justin@worthe-it.co.za>2021-12-02 09:19:49 +0200
commite023b2ad45e8eb624b15a9301a3a96fbb9442e92 (patch)
tree7d13c3f75d008cfe09e943b778712021b1948a7a /src/parsers.rs
parente132e55fee2822f6eeb1e47a69491e69b22bb41f (diff)
Day 2
Diffstat (limited to 'src/parsers.rs')
-rw-r--r--src/parsers.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/parsers.rs b/src/parsers.rs
index 7e8ecc9..8b13789 100644
--- a/src/parsers.rs
+++ b/src/parsers.rs
@@ -1,18 +1 @@
-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)
-}
-
-pub fn i64(input: &str) -> IResult<&str, i64> {
- map_res(digit1, i64::from_str)(input)
-}
-
-pub fn u32(input: &str) -> IResult<&str, u32> {
- map_res(digit1, u32::from_str)(input)
-}
-
-pub fn i32(input: &str) -> IResult<&str, i32> {
- map_res(digit1, i32::from_str)(input)
-}