Skip to content

Commit 8738518

Browse files
committed
Use rustlings_dir when deleting the temporary dir before recreating it
1 parent 9011d34 commit 8738518

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub fn init() -> Result<()> {
107107
}
108108

109109
stdout.write_all(b"The directory `rustlings` has been added to `workspace.members` in the `Cargo.toml` file of this Cargo workspace.\n")?;
110-
fs::remove_dir_all("rustlings")
110+
fs::remove_dir_all(rustlings_dir)
111111
.context("Failed to remove the temporary directory `rustlings/`")?;
112112
init_git = false;
113113
} else {

0 commit comments

Comments
 (0)