Skip to content

Commit

Permalink
refactor: get rid of clone
Browse files Browse the repository at this point in the history
  • Loading branch information
th7nder committed Dec 3, 2024
1 parent f8b87c0 commit c45067a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storagext/lib/src/types/storage_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ pub struct DeadlineState {
impl From<RuntimeDeadlineState> for DeadlineState {
fn from(value: RuntimeDeadlineState) -> Self {
Self {
partitions: BTreeMap::from_iter(value.partitions.0.iter().map(|(k, v)| {
partitions: BTreeMap::from_iter(value.partitions.0.into_iter().map(|(k, v)| {
(
*k,
k,
PartitionState {
sectors: BTreeSet::from_iter(v.sectors.0.iter().cloned()),
sectors: BTreeSet::from_iter(v.sectors.0.into_iter()),
},
)
})),
Expand Down

0 comments on commit c45067a

Please sign in to comment.