mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-01 07:53:30 +02:00
Use rustlings_dir when deleting the temporary dir before recreating it
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ pub fn init() -> Result<()> {
|
||||
}
|
||||
|
||||
stdout.write_all(b"The directory `rustlings` has been added to `workspace.members` in the `Cargo.toml` file of this Cargo workspace.\n")?;
|
||||
fs::remove_dir_all("rustlings")
|
||||
fs::remove_dir_all(rustlings_dir)
|
||||
.context("Failed to remove the temporary directory `rustlings/`")?;
|
||||
init_git = false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user