Skip to content

Commit af2eecd

Browse files
committed
Replace an open-coded conversion with ivec::from_vec
1 parent a8af13e commit af2eecd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/test/compiletest/compiletest.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ import util::logv;
1717

1818
fn main(args: vec[str]) {
1919

20-
let ivec_args =
21-
{
22-
let ivec_args = ~[];
23-
for arg: str in args { ivec_args += ~[arg]; }
24-
ivec_args
25-
};
20+
let ivec_args = ivec::from_vec(args);
2621

2722
let config = parse_config(ivec_args);
2823
log_config(config);

0 commit comments

Comments
 (0)