Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Clippy: remove redundant clone
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
ggwpez committed Aug 24, 2023
1 parent 3df2580 commit b6bdc4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/broker/src/dispatchable_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl<T: Config> Pallet<T> {
ensure!(pivot > region_id.begin, Error::<T>::PivotTooEarly);

region.paid = None;
let new_region_ids = (region_id, RegionId { begin: pivot, ..region_id.clone() });
let new_region_ids = (region_id, RegionId { begin: pivot, ..region_id });

Regions::<T>::insert(&new_region_ids.0, &RegionRecord { end: pivot, ..region.clone() });
Regions::<T>::insert(&new_region_ids.1, &region);
Expand Down

0 comments on commit b6bdc4f

Please sign in to comment.