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:
Xiliang Chen
2019-08-25 22:57:31 +12:00
committed by Bastian Köcher
parent 672e62fe0f
commit da03850eed
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -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) {