Remove read_file and read_file_string and replace them with the std alternatives

This commit is contained in:
Daniel García
2022-07-15 19:13:26 +02:00
parent 7cbcad0e38
commit c9376e3126
5 changed files with 6 additions and 19 deletions

View File

@@ -91,8 +91,7 @@ macro_rules! make_config {
}
fn from_file(path: &str) -> Result<Self, Error> {
use crate::util::read_file_string;
let config_str = read_file_string(path)?;
let config_str = std::fs::read_to_string(path)?;
serde_json::from_str(&config_str).map_err(Into::into)
}