File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2585,14 +2585,14 @@ pub async fn list_orgs_for_user(
2585
2585
. into_iter ( )
2586
2586
. filter_map ( |user_role| {
2587
2587
( user_role. status == UserStatus :: Active )
2588
- . then ( || user_role. org_id )
2588
+ . then_some ( user_role. org_id )
2589
2589
. flatten ( )
2590
2590
} )
2591
2591
. collect :: < HashSet < _ > > ( ) ;
2592
2592
2593
2593
let resp = futures:: future:: try_join_all (
2594
2594
orgs. iter ( )
2595
- . map ( |org_id| state. store . find_organization_by_org_id ( & org_id) ) ,
2595
+ . map ( |org_id| state. store . find_organization_by_org_id ( org_id) ) ,
2596
2596
)
2597
2597
. await
2598
2598
. change_context ( UserErrors :: InternalServerError ) ?
@@ -2651,7 +2651,7 @@ pub async fn list_merchants_for_user_in_org(
2651
2651
. into_iter ( )
2652
2652
. filter_map ( |user_role| {
2653
2653
( user_role. status == UserStatus :: Active )
2654
- . then ( || user_role. merchant_id )
2654
+ . then_some ( user_role. merchant_id )
2655
2655
. flatten ( )
2656
2656
} )
2657
2657
. collect :: < HashSet < _ > > ( )
@@ -2734,7 +2734,7 @@ pub async fn list_profiles_for_user_in_org_and_merchant_account(
2734
2734
. into_iter ( )
2735
2735
. filter_map ( |user_role| {
2736
2736
( user_role. status == UserStatus :: Active )
2737
- . then ( || user_role. profile_id )
2737
+ . then_some ( user_role. profile_id )
2738
2738
. flatten ( )
2739
2739
} )
2740
2740
. collect :: < HashSet < _ > > ( ) ;
You can’t perform that action at this time.
0 commit comments