File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,11 @@ pub fn main() {
122
122
if let Some ( "clippy" ) = std:: env:: args ( ) . nth ( 1 ) . as_ref ( ) . map ( AsRef :: as_ref) {
123
123
let args = wrap_args ( std:: env:: args ( ) . skip ( 2 ) , dep_path, sys_root) ;
124
124
let path = std:: env:: current_exe ( ) . expect ( "current executable path invalid" ) ;
125
- let run = std:: process:: Command :: new ( "cargo" )
125
+ std:: process:: Command :: new ( "cargo" )
126
126
. args ( & args)
127
127
. env ( "RUSTC" , path)
128
128
. spawn ( ) . expect ( "could not run cargo" )
129
- . wait ( ) . expect ( "failed to wait for cargo?" )
130
- . success ( ) ;
131
- assert ! ( run, "cargo rustc failed" ) ;
129
+ . wait ( ) . expect ( "failed to wait for cargo?" ) ;
132
130
} else {
133
131
let args: Vec < String > = if env:: args ( ) . any ( |s| s == "--sysroot" ) {
134
132
env:: args ( ) . collect ( )
You can’t perform that action at this time.
0 commit comments