diff --git a/src/lib.rs b/src/lib.rs index a093b56..b26f11f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ pub mod line_parser; pub mod file_parser; -use file_parser::Filelist; +pub use file_parser::Filelist; use std::error::Error; pub fn parse(path: &str) -> Result> { diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 30c23e1..1be5492 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -1,4 +1,4 @@ -extern crate sv_filelist_parser; +use sv_filelist_parser; use std::collections::HashMap; #[test] @@ -8,7 +8,7 @@ fn simple_test() { defines.insert("e".to_string(), "f".to_string()); defines.insert("c".to_string(), "d".to_string()); - let filelist_exp = sv_filelist_parser::file_parser::Filelist { + let filelist_exp = sv_filelist_parser::Filelist { files : vec!["testcase/file1.sv".to_string(), "testcase/file2.sv".to_string(), "testcase/file3.sv".to_string(),