From: Alex Crichton Date: Tue, 22 Jul 2014 14:38:01 +0000 (-0700) Subject: Correct a typo in layout preparation X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=260ecb5fcbb690429f7ffe3f59d7191481229403;p=cargo.git Correct a typo in layout preparation If a build was canceled halfway-through, this would lead to problems when the project was rebuilt again. --- diff --git a/src/cargo/ops/cargo_rustc/layout.rs b/src/cargo/ops/cargo_rustc/layout.rs index 2fa1bd024..42bf4a0f8 100644 --- a/src/cargo/ops/cargo_rustc/layout.rs +++ b/src/cargo/ops/cargo_rustc/layout.rs @@ -84,7 +84,7 @@ impl Layout { try!(fs::rmdir_recursive(&self.old_root)); } if self.old_native.exists() { - try!(fs::rmdir_recursive(&self.old_root)); + try!(fs::rmdir_recursive(&self.old_native)); } if self.deps.exists() { try!(fs::rename(&self.deps, &self.old_deps));