Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 4, 2019
1 parent f4f2487 commit 85958b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tar = "0.4.13"
walkdir = "2"
xz2 = "0.1.4"
num_cpus = "1"
remove_dir_all = "0.5"

[dependencies.clap]
features = ["yaml"]
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ pub type Result<T> = std::result::Result<T, failure::Error>;
#[macro_use]
mod util;

// deal with OS complications (cribbed from rustup.rs)
mod remove_dir_all;

mod combiner;
mod generator;
mod scripter;
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn open_file<P: AsRef<Path>>(path: P) -> Result<fs::File> {

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

0 comments on commit 85958b0

Please sign in to comment.