mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-02 08:23:31 +02:00
Remove the info_toml_content field
This commit is contained in:
@@ -65,7 +65,6 @@ struct ExercisesDir {
|
||||
}
|
||||
|
||||
pub struct EmbeddedFiles {
|
||||
pub info_toml_content: &'static str,
|
||||
exercises_dir: ExercisesDir,
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ impl InfoFile {
|
||||
if let Ok(file_content) = fs::read_to_string("info.toml") {
|
||||
toml_edit::de::from_str(&file_content)
|
||||
} else {
|
||||
toml_edit::de::from_str(EMBEDDED_FILES.info_toml_content)
|
||||
toml_edit::de::from_str(include_str!("../info.toml"))
|
||||
}
|
||||
.context("Failed to parse `info.toml`")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user