diff --git a/src/ast.rs b/src/ast.rs index 764c96e..2f5c5b8 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -36,7 +36,7 @@ impl TryFrom for InterfaceType { } #[derive(PartialEq, Debug)] -pub enum AdapterKind { +pub(crate) enum AdapterKind { Import, Export, HelperFunction, diff --git a/src/parsers.rs b/src/parsers.rs index 9d0073e..9d88ab1 100644 --- a/src/parsers.rs +++ b/src/parsers.rs @@ -164,7 +164,7 @@ fn instructions<'input, E: ParseError<&'input [u8]>>( }) } -pub fn exports<'input, E: ParseError<&'input [u8]>>( +fn exports<'input, E: ParseError<&'input [u8]>>( input: &'input [u8], ) -> IResult<&'input [u8], Vec, E> { let mut input = input; @@ -187,7 +187,7 @@ pub fn exports<'input, E: ParseError<&'input [u8]>>( Ok((input, exports)) } -pub fn types<'input, E: ParseError<&'input [u8]>>( +fn types<'input, E: ParseError<&'input [u8]>>( input: &'input [u8], ) -> IResult<&'input [u8], Vec, E> { let mut input = input; @@ -210,7 +210,7 @@ pub fn types<'input, E: ParseError<&'input [u8]>>( Ok((input, types)) } -pub fn imported_functions<'input, E: ParseError<&'input [u8]>>( +fn imported_functions<'input, E: ParseError<&'input [u8]>>( input: &'input [u8], ) -> IResult<&'input [u8], Vec, E> { let mut input = input; @@ -235,7 +235,7 @@ pub fn imported_functions<'input, E: ParseError<&'input [u8]>>( Ok((input, imported_functions)) } -pub fn adapters<'input, E: ParseError<&'input [u8]>>( +fn adapters<'input, E: ParseError<&'input [u8]>>( input: &'input [u8], ) -> IResult<&'input [u8], Vec, E> { let mut input = input; @@ -298,7 +298,7 @@ pub fn adapters<'input, E: ParseError<&'input [u8]>>( Ok((input, adapters)) } -pub fn forwards<'input, E: ParseError<&'input [u8]>>( +fn forwards<'input, E: ParseError<&'input [u8]>>( input: &'input [u8], ) -> IResult<&'input [u8], Vec, E> { let mut input = input;