diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 7a940b8..6c342cb 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -20,7 +20,6 @@ pub mod command; pub mod imf; pub mod response; pub mod trace; -pub mod utils; pub fn base64(input: &[u8]) -> IResult<&[u8], &str> { let mut parser = map_res( diff --git a/src/parse/utils.rs b/src/parse/utils.rs deleted file mode 100644 index 99410e9..0000000 --- a/src/parse/utils.rs +++ /dev/null @@ -1,10 +0,0 @@ -use nom::{ - character::streaming::{line_ending, not_line_ending}, - IResult, -}; - -pub fn single_line(input: &[u8]) -> IResult<&[u8], String> { - let (rem, (line, _)) = nom::sequence::tuple((not_line_ending, line_ending))(input)?; - - Ok((rem, String::from_utf8(line.to_vec()).unwrap())) -}