From 1bf078f988498ddbdbbfd5c58f850bce14518db6 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 15 Dec 2011 16:41:06 -0800 Subject: [PATCH] Remove hopefully-now-redundant chops of ./ at the beginning of filenames in cargo. --- src/cargo/cargo.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs index 4fb7488a8f8..3347b367ee2 100644 --- a/src/cargo/cargo.rs +++ b/src/cargo/cargo.rs @@ -155,11 +155,9 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) { name = str::slice(name, 0u, ri as uint); } log #fmt["Installing: %s", name]; - let old = vec::map(fs::list_dir("."), - {|x| str::slice(x, 2u, str::byte_len(x))}); + let old = fs::list_dir("."); run::run_program("rustc", [name + ".rc"]); - let new = vec::map(fs::list_dir("."), - {|x| str::slice(x, 2u, str::byte_len(x))}); + let new = fs::list_dir("."); let created = vec::filter::(new, { |n| !vec::member::(n, old) }); let exec_suffix = os::exec_suffix();