diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/embedded.rs | 2 | ||||
| -rw-r--r-- | src/info_file.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/embedded.rs b/src/embedded.rs index 51a14b6..88c1fb0 100644 --- a/src/embedded.rs +++ b/src/embedded.rs @@ -152,7 +152,7 @@ mod tests { #[test] fn dirs() { - let exercises = toml_edit::de::from_str::<InfoFile>(EMBEDDED_FILES.info_file) + let exercises = toml::de::from_str::<InfoFile>(EMBEDDED_FILES.info_file) .expect("Failed to parse `info.toml`") .exercises; diff --git a/src/info_file.rs b/src/info_file.rs index 634bece..04e5d64 100644 --- a/src/info_file.rs +++ b/src/info_file.rs @@ -95,11 +95,11 @@ impl InfoFile { pub fn parse() -> Result<Self> { // Read a local `info.toml` if it exists. let slf = match fs::read_to_string("info.toml") { - Ok(file_content) => toml_edit::de::from_str::<Self>(&file_content) + Ok(file_content) => toml::de::from_str::<Self>(&file_content) .context("Failed to parse the `info.toml` file")?, Err(e) => { if e.kind() == ErrorKind::NotFound { - return toml_edit::de::from_str(EMBEDDED_FILES.info_file) + return toml::de::from_str(EMBEDDED_FILES.info_file) .context("Failed to parse the embedded `info.toml` file"); } |
