Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 85958b0

Browse files
committed
Fix Windows build
1 parent f4f2487 commit 85958b0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tar = "0.4.13"
1717
walkdir = "2"
1818
xz2 = "0.1.4"
1919
num_cpus = "1"
20+
remove_dir_all = "0.5"
2021

2122
[dependencies.clap]
2223
features = ["yaml"]

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ pub type Result<T> = std::result::Result<T, failure::Error>;
33
#[macro_use]
44
mod util;
55

6-
// deal with OS complications (cribbed from rustup.rs)
7-
mod remove_dir_all;
8-
96
mod combiner;
107
mod generator;
118
mod scripter;

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub fn open_file<P: AsRef<Path>>(path: P) -> Result<fs::File> {
8383

8484
/// Wraps `remove_dir_all` with a nicer error message.
8585
pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> Result<()> {
86-
crate::remove_dir_all::remove_dir_all(path.as_ref())
86+
remove_dir_all::remove_dir_all(path.as_ref())
8787
.with_context(|_| format!("failed to remove dir '{}'", path.as_ref().display()))?;
8888
Ok(())
8989
}

0 commit comments

Comments
 (0)