From: king6cong Date: Thu, 16 Feb 2017 07:11:51 +0000 (+0800) Subject: remove unnecessary code X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~9^2~146^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b6aac11db17b8552c38d73fad60fe32dd7d4c2d2;p=cargo.git remove unnecessary code --- diff --git a/src/cargo/ops/cargo_rustc/fingerprint.rs b/src/cargo/ops/cargo_rustc/fingerprint.rs index d892a6517..6384204d3 100644 --- a/src/cargo/ops/cargo_rustc/fingerprint.rs +++ b/src/cargo/ops/cargo_rustc/fingerprint.rs @@ -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(()) }