diff --git a/Cargo.toml b/Cargo.toml index 433a5f2..2da1c4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smurf" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["Ivan Bushchik "] description = "SMall Useful Rust Functions" diff --git a/src/file.rs b/src/file.rs index 48db170..1b6d47f 100644 --- a/src/file.rs +++ b/src/file.rs @@ -5,7 +5,7 @@ pub fn read_to_str(path: &std::path::PathBuf) -> String { let file = File::open(&path); let file = match file { Ok(data) => data, - Err(err) => { + Err(_) => { eprintln!("Cannot open file \"{}\"", path.display()); std::process::exit(2) } diff --git a/src/lib.rs b/src/lib.rs index aad7062..902f3dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,2 +1,2 @@ -mod file; -mod shell; +pub mod file; +pub mod shell;