From b38418fcc3827506db3d05e25e301a6a216ab2d2 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Fri, 13 Sep 2019 14:26:49 +0200 Subject: [PATCH] fix(interface-types) Fix visibility of various symbols. --- src/ast.rs | 2 +- src/parsers.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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;