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