Explorar o código

src/util/time.rs: added copy trait

aggstam %!s(int64=4) %!d(string=hai) anos
pai
achega
6163de04d9
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      src/util/time.rs

+ 9 - 1
src/util/time.rs

@@ -14,7 +14,15 @@ use crate::{
 
 /// Wrapper struct to represent [`chrono`] UTC timestamps.
 #[derive(
-    Clone, Debug, Serialize, Deserialize, SerialEncodable, SerialDecodable, PartialEq, PartialOrd,
+    Clone,
+    Copy,
+    Debug,
+    Serialize,
+    Deserialize,
+    SerialEncodable,
+    SerialDecodable,
+    PartialEq,
+    PartialOrd,
 )]
 pub struct Timestamp(pub i64);