Skip to content

Commit cc7f190

Browse files
committed
fix clippy error
1 parent ceb7b5f commit cc7f190

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

http-client/src/client/chooser/subnet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

objects-manager/src/operation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)