summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-08-18 11:34:36 +0200
committermo8it <mo8it@proton.me>2025-08-18 12:01:21 +0200
commita712e484d09ce27a622da5e61d26bbb1004f51d2 (patch)
treefb9233a3363c68da6f866dffdff635f778793345 /src
parentf24861957a0c669060473a1fe7c6180eb43df9e2 (diff)
Update deps
Diffstat (limited to 'src')
-rw-r--r--src/embedded.rs2
-rw-r--r--src/info_file.rs4
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");
}