Skip to content

Commit 49ed3f9

Browse files
committed
Fix Clippy
1 parent d04c746 commit 49ed3f9

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
@@ -1004,12 +1004,9 @@ impl Config {
10041004
};
10051005

10061006
// Now check that the selected stage makes sense, and if not, print a warning and end
1007-
match (config.stage, &config.cmd) {
1008-
(0, Subcommand::Build) => {
1009-
eprintln!("WARNING: cannot build anything on stage 0. Use at least stage 1.");
1010-
exit!(1)
1011-
}
1012-
_ => {}
1007+
if let (0, Subcommand::Build) = (config.stage, &config.cmd) {
1008+
eprintln!("WARNING: cannot build anything on stage 0. Use at least stage 1.");
1009+
exit!(1);
10131010
}
10141011

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

0 commit comments

Comments
 (0)