File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn main() {
2727 args. push ( codegen_backend_arg) ;
2828 }
2929 if !passed_args. iter ( ) . any ( |arg| {
30- arg == "--sysroot" || arg. to_str ( ) . map ( |s| s. starts_with ( "--sysroot=" ) ) == Some ( true )
30+ arg == "--sysroot" || arg. to_str ( ) . is_some_and ( |s| s. starts_with ( "--sysroot=" ) )
3131 } ) {
3232 args. push ( OsString :: from ( "--sysroot" ) ) ;
3333 args. push ( OsString :: from ( sysroot. to_str ( ) . unwrap ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn main() {
2727 args. push ( codegen_backend_arg) ;
2828 }
2929 if !passed_args. iter ( ) . any ( |arg| {
30- arg == "--sysroot" || arg. to_str ( ) . map ( |s| s. starts_with ( "--sysroot=" ) ) == Some ( true )
30+ arg == "--sysroot" || arg. to_str ( ) . is_some_and ( |s| s. starts_with ( "--sysroot=" ) )
3131 } ) {
3232 args. push ( OsString :: from ( "--sysroot" ) ) ;
3333 args. push ( OsString :: from ( sysroot. to_str ( ) . unwrap ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl ConcurrencyLimiter {
6464 // Make sure to drop the mutex guard first to prevent poisoning the mutex.
6565 drop ( state) ;
6666 if let Some ( err) = err {
67- handler. fatal ( err) . raise ( ) ;
67+ handler. fatal ( err) ;
6868 } else {
6969 // The error was already emitted, but compilation continued. Raise a silent
7070 // fatal error.
You can’t perform that action at this time.
0 commit comments