File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,8 @@ pub fn main() {
236
236
let mut args: Vec < String > = orig_args. clone ( ) ;
237
237
pass_sysroot_env_if_given ( & mut args, sys_root_env) ;
238
238
239
- return rustc_driver:: RunCompiler :: new ( & args, & mut DefaultCallbacks ) . run ( ) ;
239
+ rustc_driver:: RunCompiler :: new ( & args, & mut DefaultCallbacks ) . run ( ) ;
240
+ return Ok ( ( ) ) ;
240
241
}
241
242
242
243
if orig_args. iter ( ) . any ( |a| a == "--version" || a == "-V" ) {
@@ -296,12 +297,13 @@ pub fn main() {
296
297
args. extend ( clippy_args) ;
297
298
rustc_driver:: RunCompiler :: new ( & args, & mut ClippyCallbacks { clippy_args_var } )
298
299
. set_using_internal_features ( using_internal_features)
299
- . run ( )
300
+ . run ( ) ;
300
301
} else {
301
302
rustc_driver:: RunCompiler :: new ( & args, & mut RustcCallbacks { clippy_args_var } )
302
303
. set_using_internal_features ( using_internal_features)
303
- . run ( )
304
+ . run ( ) ;
304
305
}
306
+ return Ok ( ( ) ) ;
305
307
} ) )
306
308
}
307
309
You can’t perform that action at this time.
0 commit comments