Skip to content

Commit

Permalink
remove some workarounds for old bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Jul 12, 2011
1 parent e1620de commit 67ecda6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/getopts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ tag result { success(match); failure(fail_); }

fn getopts(vec[str] args, vec[opt] opts) -> result {
auto n_opts = vec::len[opt](opts);
fn empty_(uint x) -> vec[optval] { ret vec::empty[optval](); }
auto f = empty_;
fn f(uint x) -> vec[optval] { ret vec::empty(); }
auto vals = vec::init_fn_mut[vec[optval]](f, n_opts);
let vec[str] free = [];
auto l = vec::len[str](args);
Expand Down

0 comments on commit 67ecda6

Please sign in to comment.