File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ impl<'tcx> FormatArgsExpr<'_, 'tcx> {
532
532
let ty = ty. peel_refs ( ) ;
533
533
534
534
if let Some ( feature) = self . ty_feature_map . get ( & ty)
535
- && feature. map_or ( true , |feature| self . cx . tcx . features ( ) . enabled ( feature) )
535
+ && feature. is_none_or ( |feature| self . cx . tcx . features ( ) . enabled ( feature) )
536
536
{
537
537
return true ;
538
538
}
@@ -543,7 +543,7 @@ impl<'tcx> FormatArgsExpr<'_, 'tcx> {
543
543
&& implements_trait ( self . cx , ty, deref_trait_id, & [ ] )
544
544
&& let Some ( target_ty) = self . cx . get_associated_type ( ty, deref_trait_id, "Target" )
545
545
&& let Some ( feature) = self . ty_feature_map . get ( & target_ty)
546
- && feature. map_or ( true , |feature| self . cx . tcx . features ( ) . enabled ( feature) )
546
+ && feature. is_none_or ( |feature| self . cx . tcx . features ( ) . enabled ( feature) )
547
547
{
548
548
return true ;
549
549
}
You can’t perform that action at this time.
0 commit comments