Skip to content

Commit d7e8b4e

Browse files
xizheyintgross35
andauthored
Update bootstrap/src/main.rs
Co-authored-by: Trevor Gross <[email protected]>
1 parent 1949628 commit d7e8b4e

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

bootstrap/src/main.rs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,16 @@ fn main() {
5151
out_dir: cli.out_dir.unwrap_or("build".to_string()).into(),
5252
};
5353

54-
// 更新子命令的 verbose 标志
55-
let command = match cli.command {
54+
match cli.command {
5655
Command::Test(mut test) => {
5756
test.verbose |= cli.verbose;
58-
Command::Test(test)
57+
test.run(&manifest)
5958
}
60-
Command::Clean(clean) => Command::Clean(clean),
61-
Command::Rustc(mut rustc) => {
59+
Command::Clean(clean) => clean.run(&manifest),
60+
Command::Rustc(rustc) => {
6261
rustc.verbose |= cli.verbose;
63-
Command::Rustc(rustc)
62+
rustc.run(&manifest)
6463
}
65-
Command::Fmt(fmt) => Command::Fmt(fmt),
66-
};
67-
68-
match command {
69-
Command::Test(test) => test.run(&manifest),
70-
Command::Clean(clean) => clean.run(&manifest),
71-
Command::Rustc(rustc) => rustc.run(&manifest),
7264
Command::Fmt(fmt) => fmt.run(&manifest),
7365
}
7466
}

0 commit comments

Comments
 (0)