Skip to content

Commit bd7f407

Browse files
committed
we need to recursively create the dir
1 parent b916795 commit bd7f407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cargo-miri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn setup(ask_user: bool) {
149149
let dirs = directories::ProjectDirs::from("miri", "miri", "miri").unwrap();
150150
let dir = dirs.cache_dir();
151151
if !dir.exists() {
152-
fs::create_dir(&dir).unwrap();
152+
fs::create_dir_all(&dir).unwrap();
153153
}
154154
// The interesting bit: Xargo.toml
155155
File::create(dir.join("Xargo.toml")).unwrap()

0 commit comments

Comments
 (0)