@@ -65,7 +65,7 @@ struct CommandTest {
6565
6666impl CommandTest {
6767 fn run ( self ) {
68- run_command ( make_test_cmd ( self . no_capture , true , & [ ] ) ) ;
68+ run_command ( make_test_cmd ( self . no_capture , & [ ] ) ) ;
6969 }
7070}
7171
@@ -130,12 +130,9 @@ fn make_build_cmd(locked: bool) -> StdCommand {
130130 cmd
131131}
132132
133- fn make_test_cmd ( no_capture : bool , default_features : bool , features : & [ & str ] ) -> StdCommand {
133+ fn make_test_cmd ( no_capture : bool , features : & [ & str ] ) -> StdCommand {
134134 let mut cmd = find_command ( "cargo" ) ;
135- cmd. args ( [ "test" , "--workspace" ] ) ;
136- if !default_features {
137- cmd. arg ( "--no-default-features" ) ;
138- }
135+ cmd. args ( [ "test" , "--workspace" , "--no-default-features" ] ) ;
139136 if !features. is_empty ( ) {
140137 cmd. args ( [ "--features" , features. join ( "," ) . as_str ( ) ] ) ;
141138 }
@@ -147,7 +144,7 @@ fn make_test_cmd(no_capture: bool, default_features: bool, features: &[&str]) ->
147144
148145fn make_format_cmd ( fix : bool ) -> StdCommand {
149146 let mut cmd = find_command ( "cargo" ) ;
150- cmd. args ( [ "fmt" , "--all" ] ) ;
147+ cmd. args ( [ "+nightly" , " fmt", "--all" ] ) ;
151148 if !fix {
152149 cmd. arg ( "--check" ) ;
153150 }
@@ -157,6 +154,7 @@ fn make_format_cmd(fix: bool) -> StdCommand {
157154fn make_clippy_cmd ( fix : bool ) -> StdCommand {
158155 let mut cmd = find_command ( "cargo" ) ;
159156 cmd. args ( [
157+ "+nightly" ,
160158 "clippy" ,
161159 "--tests" ,
162160 "--all-features" ,
0 commit comments