diff options
Diffstat (limited to 'xtask/src/helpers.rs')
-rw-r--r-- | xtask/src/helpers.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/helpers.rs b/xtask/src/helpers.rs index 4f759e74..f96cdfb3 100644 --- a/xtask/src/helpers.rs +++ b/xtask/src/helpers.rs @@ -39,6 +39,6 @@ pub fn find_files(dir: &Path, filename: &str) -> Vec<PathBuf> { } pub fn lang_config() -> LangConfig { - let bytes = std::fs::read(path::lang_config()).unwrap(); - toml::from_slice(&bytes).unwrap() + let text = std::fs::read_to_string(path::lang_config()).unwrap(); + toml::from_str(&text).unwrap() } |