mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Branch arms need to match the return value even if it's not being assigned to anything
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user