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 authored and Bastian Köcher committed 2019-08-25 12:57:31 +02:00
1 parent 672e62fe0f
commit da03850eed
6 files changed
+11 -11

No files matched your search

+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;
}