1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-08-07 12:03:18 -04:00

Remove the info_toml_content field

This commit is contained in:
mo8it 2024-04-07 23:57:54 +02:00
commit 394ca402a8
3 changed files with 1 additions and 3 deletions

View file

@ -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`")
}