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() {
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}
You can’t perform that action at this time.
0 commit comments