File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
http-client/src/client/chooser Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ impl Chooser for SubnetChooser {
114114 }
115115 }
116116 }
117- let chosen_ips = choose_group ( subnets_map. into_iter ( ) . map ( | ( _ , ips ) | ips ) ) . unwrap_or_default ( ) ;
117+ let chosen_ips = choose_group ( subnets_map. into_values ( ) ) . unwrap_or_default ( ) ;
118118 do_some_work_async ( & self . inner , need_to_shrink) ;
119119 return chosen_ips. into ( ) ;
120120
Original file line number Diff line number Diff line change @@ -601,7 +601,7 @@ impl ModifyObjectStatus<'_> {
601601 fn to_path_params ( & self ) -> qiniu_apis:: storage:: modify_object_status:: PathParams {
602602 qiniu_apis:: storage:: modify_object_status:: PathParams :: default ( )
603603 . set_entry_as_str ( self . entry . to_string ( ) )
604- . set_status_as_usize ( if self . disabled { 1 } else { 0 } )
604+ . set_status_as_usize ( usize :: from ( self . disabled ) )
605605 }
606606}
607607
You can’t perform that action at this time.
0 commit comments