Skip to content

Commit 1bf078f

Browse files
committed
Remove hopefully-now-redundant chops of ./ at the beginning of filenames in cargo.
1 parent d1bca75 commit 1bf078f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cargo/cargo.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,9 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
155155
name = str::slice(name, 0u, ri as uint);
156156
}
157157
log #fmt["Installing: %s", name];
158-
let old = vec::map(fs::list_dir("."),
159-
{|x| str::slice(x, 2u, str::byte_len(x))});
158+
let old = fs::list_dir(".");
160159
run::run_program("rustc", [name + ".rc"]);
161-
let new = vec::map(fs::list_dir("."),
162-
{|x| str::slice(x, 2u, str::byte_len(x))});
160+
let new = fs::list_dir(".");
163161
let created =
164162
vec::filter::<str>(new, { |n| !vec::member::<str>(n, old) });
165163
let exec_suffix = os::exec_suffix();

0 commit comments

Comments
 (0)