Skip to content

Commit

Permalink
fix up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
timbod7 committed Aug 15, 2022
1 parent e29d2e0 commit 1d4c6a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rust/compiler/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod adlgen;
mod adlrt;
mod parser;
pub mod adlgen;
pub mod adlrt;
pub mod parser;

2 changes: 1 addition & 1 deletion rust/compiler/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use nom::{
map,
value,
},
number::complete::{double, u64},
number::complete::{double},
sequence::{
pair,
delimited,
Expand Down
4 changes: 2 additions & 2 deletions rust/compiler/src/parser/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down Expand Up @@ -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,
}
});

Expand Down

0 comments on commit 1d4c6a6

Please sign in to comment.