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() {
27
27
args. push ( codegen_backend_arg) ;
28
28
}
29
29
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=" ) )
31
31
} ) {
32
32
args. push ( OsString :: from ( "--sysroot" ) ) ;
33
33
args. push ( OsString :: from ( sysroot. to_str ( ) . unwrap ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn main() {
27
27
args. push ( codegen_backend_arg) ;
28
28
}
29
29
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=" ) )
31
31
} ) {
32
32
args. push ( OsString :: from ( "--sysroot" ) ) ;
33
33
args. push ( OsString :: from ( sysroot. to_str ( ) . unwrap ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl ConcurrencyLimiter {
64
64
// Make sure to drop the mutex guard first to prevent poisoning the mutex.
65
65
drop ( state) ;
66
66
if let Some ( err) = err {
67
- handler. fatal ( err) . raise ( ) ;
67
+ handler. fatal ( err) ;
68
68
} else {
69
69
// The error was already emitted, but compilation continued. Raise a silent
70
70
// fatal error.
You can’t perform that action at this time.
0 commit comments