mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +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
@@ -946,12 +946,12 @@ impl<T: Trait> Module<T> {
|
||||
if (now % T::LaunchPeriod::get()).is_zero() {
|
||||
// Errors come from the queue being empty. we don't really care about that, and even if
|
||||
// we did, there is nothing we can do here.
|
||||
let _ = Self::launch_next(now.clone());
|
||||
let _ = Self::launch_next(now);
|
||||
}
|
||||
|
||||
// tally up votes for any expiring referenda.
|
||||
for (index, info) in Self::maturing_referenda_at(now).into_iter() {
|
||||
Self::bake_referendum(now.clone(), index, info)?;
|
||||
Self::bake_referendum(now, index, info)?;
|
||||
}
|
||||
|
||||
for (proposal, index) in <DispatchQueue<T>>::take(now).into_iter().filter_map(|x| x) {
|
||||
|
||||
Reference in New Issue
Block a user