]> git.proxmox.com Git - cargo.git/commitdiff
Correct a typo in layout preparation
authorAlex Crichton <alex@alexcrichton.com>
Tue, 22 Jul 2014 14:38:01 +0000 (07:38 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 22 Jul 2014 14:38:01 +0000 (07:38 -0700)
If a build was canceled halfway-through, this would lead to problems when the
project was rebuilt again.

src/cargo/ops/cargo_rustc/layout.rs

index 2fa1bd024630c1d388337e5189bf906f573b2003..42bf4a0f859867b26d9251012b65b4164e384608 100644 (file)
@@ -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));