Skip to content

Commit ea2bfae

Browse files
committed
Branch arms need to match the return value even if it's not being assigned to anything
1 parent 20cb700 commit ea2bfae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bootstrap/flags.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`");
137137

138138
// Some subcommands get extra options
139139
match subcommand.as_str() {
140-
"test" => opts.optmulti("", "test-args", "extra arguments", "ARGS"),
141-
"bench" => opts.optmulti("", "test-args", "extra arguments", "ARGS"),
142-
"dist" => opts.optflag("", "install", "run installer as well"),
143-
_ => { }
140+
"test" => { opts.optmulti("", "test-args", "extra arguments", "ARGS"); },
141+
"bench" => { opts.optmulti("", "test-args", "extra arguments", "ARGS"); },
142+
"dist" => { opts.optflag("", "install", "run installer as well"); },
143+
_ => { },
144144
};
145145

146146
// Done specifying what options are possible, so do the getopts parsing

0 commit comments

Comments
 (0)