aboutsummaryrefslogtreecommitdiff
path: root/src/tw
diff options
context:
space:
mode:
Diffstat (limited to 'src/tw')
-rw-r--r--src/tw/events.rs1
-rw-r--r--src/tw/mod.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tw/events.rs b/src/tw/events.rs
index c26a840..afc7fbb 100644
--- a/src/tw/events.rs
+++ b/src/tw/events.rs
@@ -1,5 +1,6 @@
extern crate serde_json;
+#[derive(Clone)]
pub enum Event {
Deleted { user_id: String, twete_id: String },
RT_RT { user_id: String, twete_id: String },
diff --git a/src/tw/mod.rs b/src/tw/mod.rs
index f2582cf..0341ec9 100644
--- a/src/tw/mod.rs
+++ b/src/tw/mod.rs
@@ -135,7 +135,7 @@ impl Default for IdConversions {
}
}
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Clone)]
pub enum TweetId {
Today(u64), // just a number
Dated(String, u64), // 20171002:number