@@ -937,7 +937,7 @@ fn usage(verbose: bool, include_unstable_options: bool, nightly_build: bool) {
937
937
let groups = if verbose { config:: rustc_optgroups( ) } else { config:: rustc_short_optgroups( ) } ;
938
938
let mut options = getopts:: Options :: new( ) ;
939
939
for option in groups. iter( ) . filter( |x| include_unstable_options || x. is_stable( ) ) {
940
- ( option. apply) ( & mut options) ;
940
+ option. apply( & mut options) ;
941
941
}
942
942
let message = "Usage: rustc [OPTIONS] INPUT" ;
943
943
let nightly_help = if nightly_build {
@@ -1219,7 +1219,7 @@ pub fn handle_options(early_dcx: &EarlyDiagCtxt, args: &[String]) -> Option<geto
1219
1219
let mut options = getopts:: Options :: new( ) ;
1220
1220
let optgroups = config:: rustc_optgroups( ) ;
1221
1221
for option in & optgroups {
1222
- ( option. apply) ( & mut options) ;
1222
+ option. apply( & mut options) ;
1223
1223
}
1224
1224
let matches = options. parse( args) . unwrap_or_else( |e| {
1225
1225
let msg: Option <String > = match e {
@@ -1233,7 +1233,7 @@ pub fn handle_options(early_dcx: &EarlyDiagCtxt, args: &[String]) -> Option<geto
1233
1233
optgroups. iter( ) . find( |option| option. name == opt) . map( |option| {
1234
1234
// Print the help just for the option in question.
1235
1235
let mut options = getopts:: Options :: new( ) ;
1236
- ( option. apply) ( & mut options) ;
1236
+ option. apply( & mut options) ;
1237
1237
// getopt requires us to pass a function for joining an iterator of
1238
1238
// strings, even though in this case we expect exactly one string.
1239
1239
options. usage_with_format( |it| {
0 commit comments