Skip to content

Commit 6bf0ab7

Browse files
committed
Fix Clippy
1 parent 84dcb78 commit 6bf0ab7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,12 +1009,9 @@ impl Config {
10091009
};
10101010

10111011
// Now check that the selected stage makes sense, and if not, print a warning and end
1012-
match (config.stage, &config.cmd) {
1013-
(0, Subcommand::Build) => {
1014-
eprintln!("WARNING: cannot build anything on stage 0. Use at least stage 1.");
1015-
exit!(1)
1016-
}
1017-
_ => {}
1012+
if let (0, Subcommand::Build) = (config.stage, &config.cmd) {
1013+
eprintln!("WARNING: cannot build anything on stage 0. Use at least stage 1.");
1014+
exit!(1);
10181015
}
10191016

10201017
// CI should always run stage 2 builds, unless it specifically states otherwise

0 commit comments

Comments
 (0)