mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
add Copy to Moment type (#3476)
* add Copy to Moment type * bump version * add Copy to support::Traits::Time::Moment and removed few clones
This commit is contained in:
committed by
Bastian Köcher
parent
672e62fe0f
commit
da03850eed
@@ -1179,7 +1179,7 @@ impl<T: Trait> Module<T> {
|
||||
let rewards = CurrentEraRewards::take();
|
||||
let now = T::Time::now();
|
||||
let previous_era_start = <CurrentEraStart<T>>::mutate(|v| {
|
||||
rstd::mem::replace(v, now.clone())
|
||||
rstd::mem::replace(v, now)
|
||||
});
|
||||
let era_duration = now - previous_era_start;
|
||||
if !era_duration.is_zero() {
|
||||
|
||||
Reference in New Issue
Block a user