diff options
| author | mo8it <mo8it@proton.me> | 2024-04-23 19:18:25 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-23 19:18:25 +0200 |
| commit | 2dac8e509bed07c30a98983cfb6b80f73a1582e9 (patch) | |
| tree | 64db2dcbe08ed05d2befcdba91d851e97f18571e /src/init.rs | |
| parent | e5a19a4c33e16e517e4d597acb721ed281c7bdae (diff) | |
Refactor embedded files to add solutions
Diffstat (limited to 'src/init.rs')
| -rw-r--r-- | src/init.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.rs b/src/init.rs index f210db7..f1a9509 100644 --- a/src/init.rs +++ b/src/init.rs @@ -24,11 +24,11 @@ pub fn init() -> Result<()> { set_current_dir("rustlings") .context("Failed to change the current directory to `rustlings`")?; + let info_file = InfoFile::parse()?; EMBEDDED_FILES - .init_exercises_dir() + .init_exercises_dir(&info_file.exercises) .context("Failed to initialize the `rustlings/exercises` directory")?; - let info_file = InfoFile::parse()?; let current_cargo_toml = include_str!("../dev/Cargo.toml"); // Skip the first line (comment). let newline_ind = current_cargo_toml |
