File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
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 ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments