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
+1 -1
View File
@@ -620,7 +620,7 @@ bitmask! {
}
pub trait Time {
type Moment: SimpleArithmetic + Codec + Clone + Default;
type Moment: SimpleArithmetic + Codec + Clone + Default + Copy;
fn now() -> Self::Moment;
}