diff --git a/rust/compiler/src/lib.rs b/rust/compiler/src/lib.rs index 4b27eecc..9521fb91 100644 --- a/rust/compiler/src/lib.rs +++ b/rust/compiler/src/lib.rs @@ -1,4 +1,4 @@ -mod adlgen; -mod adlrt; -mod parser; +pub mod adlgen; +pub mod adlrt; +pub mod parser; diff --git a/rust/compiler/src/parser/mod.rs b/rust/compiler/src/parser/mod.rs index 31bb3ca4..f630f9c0 100644 --- a/rust/compiler/src/parser/mod.rs +++ b/rust/compiler/src/parser/mod.rs @@ -26,7 +26,7 @@ use nom::{ map, value, }, - number::complete::{double, u64}, + number::complete::{double}, sequence::{ pair, delimited, diff --git a/rust/compiler/src/parser/tests.rs b/rust/compiler/src/parser/tests.rs index abe43eb2..0ec63e24 100644 --- a/rust/compiler/src/parser/tests.rs +++ b/rust/compiler/src/parser/tests.rs @@ -225,7 +225,7 @@ fn parse_docstring() { #[test] fn parse_empty_module() { let pm = module(inp("module x {\n}")); - if let Ok((i, (m, _))) = pm { + if let Ok((_i, (m, _))) = pm { assert_eq!( m.name.value, "x".to_string()); } else { panic!("Failed to parse module" ); @@ -345,7 +345,7 @@ fn assert_module_file_ok(path: &str) { match e { Err::Error(e) => Some(e), Err::Failure(e) => Some(e), - Err::Incomplete(e) => None, + Err::Incomplete(_e) => None, } });