Branch arms need to match the return value even if it's not being assigned to anything
This commit is contained in:
parent
20cb7005b0
commit
ea2bfae869
@ -137,10 +137,10 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`");
|
||||
|
||||
// Some subcommands get extra options
|
||||
match subcommand.as_str() {
|
||||
"test" => opts.optmulti("", "test-args", "extra arguments", "ARGS"),
|
||||
"bench" => opts.optmulti("", "test-args", "extra arguments", "ARGS"),
|
||||
"dist" => opts.optflag("", "install", "run installer as well"),
|
||||
_ => { }
|
||||
"test" => { opts.optmulti("", "test-args", "extra arguments", "ARGS"); },
|
||||
"bench" => { opts.optmulti("", "test-args", "extra arguments", "ARGS"); },
|
||||
"dist" => { opts.optflag("", "install", "run installer as well"); },
|
||||
_ => { },
|
||||
};
|
||||
|
||||
// Done specifying what options are possible, so do the getopts parsing
|
||||
|
Loading…
x
Reference in New Issue
Block a user