Branch arms need to match the return value even if it's not being assigned to anything

This commit is contained in:
Nathan Stocks 2017-04-04 13:50:24 -06:00
parent 20cb7005b0
commit ea2bfae869

View file

@ -137,10 +137,10 @@ pub fn parse(args: &[String]) -> Flags {
// 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