File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -51,24 +51,16 @@ fn main() {
51
51
out_dir : cli. out_dir . unwrap_or ( "build" . to_string ( ) ) . into ( ) ,
52
52
} ;
53
53
54
- // 更新子命令的 verbose 标志
55
- let command = match cli. command {
54
+ match cli. command {
56
55
Command :: Test ( mut test) => {
57
56
test. verbose |= cli. verbose ;
58
- Command :: Test ( test)
57
+ test. run ( & manifest )
59
58
}
60
- Command :: Clean ( clean) => Command :: Clean ( clean) ,
61
- Command :: Rustc ( mut rustc) => {
59
+ Command :: Clean ( clean) => clean. run ( & manifest ) ,
60
+ Command :: Rustc ( rustc) => {
62
61
rustc. verbose |= cli. verbose ;
63
- Command :: Rustc ( rustc)
62
+ rustc. run ( & manifest )
64
63
}
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) ,
72
64
Command :: Fmt ( fmt) => fmt. run ( & manifest) ,
73
65
}
74
66
}
You can’t perform that action at this time.
0 commit comments