mirror of
https://github.com/ivabus/smurf
synced 2024-11-22 00:15:10 +03:00
Make modules public
This commit is contained in:
parent
9d12b43822
commit
b616ffce1d
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "smurf"
|
name = "smurf"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Ivan Bushchik <ivabus@ivabus.dev>"]
|
authors = ["Ivan Bushchik <ivabus@ivabus.dev>"]
|
||||||
description = "SMall Useful Rust Functions"
|
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 = File::open(&path);
|
||||||
let file = match file {
|
let file = match file {
|
||||||
Ok(data) => data,
|
Ok(data) => data,
|
||||||
Err(err) => {
|
Err(_) => {
|
||||||
eprintln!("Cannot open file \"{}\"", path.display());
|
eprintln!("Cannot open file \"{}\"", path.display());
|
||||||
std::process::exit(2)
|
std::process::exit(2)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
mod file;
|
pub mod file;
|
||||||
mod shell;
|
pub mod shell;
|
||||||
|
|
Loading…
Reference in a new issue