Replace an open-coded conversion with ivec::from_vec
This commit is contained in:
parent
a8af13e784
commit
af2eecdabe
1 changed files with 1 additions and 6 deletions
|
|
@ -17,12 +17,7 @@ import util::logv;
|
|||
|
||||
fn main(args: vec[str]) {
|
||||
|
||||
let ivec_args =
|
||||
{
|
||||
let ivec_args = ~[];
|
||||
for arg: str in args { ivec_args += ~[arg]; }
|
||||
ivec_args
|
||||
};
|
||||
let ivec_args = ivec::from_vec(args);
|
||||
|
||||
let config = parse_config(ivec_args);
|
||||
log_config(config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue