Use a method to apply RustcOptGroup to getopts::Options

This commit is contained in:
Zalathar 2024-11-08 12:20:51 +11:00
parent 8f7f9b93b2
commit 584c8200de
4 changed files with 11 additions and 7 deletions

View file

@ -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;
}