Use a method to apply RustcOptGroup
to getopts::Options
This commit is contained in:
parent
8f7f9b93b2
commit
584c8200de
4 changed files with 11 additions and 7 deletions
|
@ -102,7 +102,7 @@ where
|
|||
fn optgroups() -> getopts::Options {
|
||||
let mut opts = getopts::Options::new();
|
||||
for group in rustc_optgroups() {
|
||||
(group.apply)(&mut opts);
|
||||
group.apply(&mut opts);
|
||||
}
|
||||
return opts;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue