Remove read_file and read_file_string and replace them with the std alternatives

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

No files matched your search

+1 -2
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)
}