Skip to content

Commit

Permalink
Auto merge of rust-lang#3717 - king6cong:clean, r=alexcrichton
Browse files Browse the repository at this point in the history
remove unnecessary code
  • Loading branch information
bors committed Feb 16, 2017
2 parents 453b888 + b6aac11 commit fdfdb5f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/cargo/ops/cargo_rustc/fingerprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,17 +511,14 @@ fn write_fingerprint(loc: &Path, fingerprint: &Fingerprint) -> CargoResult<()> {
Ok(())
}

/// Prepare work for when a package starts to build
/// Prepare for work when a package starts to build
pub fn prepare_init(cx: &mut Context, unit: &Unit) -> CargoResult<()> {
let new1 = cx.fingerprint_dir(unit);
let new2 = new1.clone();

if fs::metadata(&new1).is_err() {
fs::create_dir(&new1)?;
}
if fs::metadata(&new2).is_err() {
fs::create_dir(&new2)?;
}

Ok(())
}

Expand Down

0 comments on commit fdfdb5f

Please sign in to comment.