diff options
| author | Nathan Stocks <nathan.stocks@gmail.com> | 2017-04-04 13:50:24 -0600 |
|---|---|---|
| committer | Nathan Stocks <nathan.stocks@gmail.com> | 2017-04-04 13:50:24 -0600 |
| commit | ea2bfae8694221c92857a0b3dd96f63a8a255db2 (patch) | |
| tree | 5db119d6f72047d9bfcca5c417fb1954bc7244c4 | |
| parent | 20cb7005b0c1e12383a4c2f9031c5c5f5c907efc (diff) | |
| download | rust-ea2bfae8694221c92857a0b3dd96f63a8a255db2.tar.gz rust-ea2bfae8694221c92857a0b3dd96f63a8a255db2.zip | |
Branch arms need to match the return value even if it's not being assigned to anything
| -rw-r--r-- | src/bootstrap/flags.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index 3af3b76163c..a1466d68a13 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -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 |
