mirror of
https://github.com/ivabus/smurf
synced 2024-11-10 02:25:22 +03:00
Make modules public
This commit is contained in:
parent
9d12b43822
commit
b616ffce1d
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "smurf"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
authors = ["Ivan Bushchik <ivabus@ivabus.dev>"]
|
||||
description = "SMall Useful Rust Functions"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
mod file;
|
||||
mod shell;
|
||||
pub mod file;
|
||||
pub mod shell;
|
||||
|
|
Loading…
Reference in a new issue