Initial commit

This commit is contained in:
Ivan Bushchik 2023-03-17 15:25:09 +03:00
parent 88264697ca
commit 9d12b43822
No known key found for this signature in database
GPG key ID: 9F6DDABE11A2674D
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target /target
/Cargo.lock /Cargo.lock
.idea

View file

@ -1,4 +1,3 @@
use log::error;
use std::fs::File; use std::fs::File;
use std::io::{prelude::*, BufReader}; use std::io::{prelude::*, BufReader};
@ -7,7 +6,7 @@ pub fn read_to_str(path: &std::path::PathBuf) -> String {
let file = match file { let file = match file {
Ok(data) => data, Ok(data) => data,
Err(err) => { Err(err) => {
error!("Cannot open file \"{}\"", path.display()); eprintln!("Cannot open file \"{}\"", path.display());
std::process::exit(2) std::process::exit(2)
} }
}; };