File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,6 @@ derived_hash_with_manual_eq = "allow"
174
174
field_reassign_with_default = " allow"
175
175
forget_non_drop = " allow"
176
176
format_collect = " allow"
177
- filter_map_bool_then = " allow"
178
177
if_same_then_else = " allow"
179
178
large_enum_variant = " allow"
180
179
match_like_matches_macro = " allow"
Original file line number Diff line number Diff line change @@ -400,9 +400,8 @@ impl GenericParams {
400
400
params
401
401
. type_or_consts
402
402
. iter ( )
403
- . filter_map ( |( idx, param) | {
404
- enabled ( idx. into ( ) ) . then ( || param. clone ( ) )
405
- } )
403
+ . filter ( |( idx, _) | enabled ( ( * idx) . into ( ) ) )
404
+ . map ( |( _, param) | param. clone ( ) )
406
405
. collect ( )
407
406
} ) ,
408
407
lifetimes : all_lifetimes_enabled
@@ -411,9 +410,8 @@ impl GenericParams {
411
410
params
412
411
. lifetimes
413
412
. iter ( )
414
- . filter_map ( |( idx, param) | {
415
- enabled ( idx. into ( ) ) . then ( || param. clone ( ) )
416
- } )
413
+ . filter ( |( idx, _) | enabled ( ( * idx) . into ( ) ) )
414
+ . map ( |( _, param) | param. clone ( ) )
417
415
. collect ( )
418
416
} ) ,
419
417
where_predicates : params. where_predicates . clone ( ) ,
You can’t perform that action at this time.
0 commit comments