aboutsummaryrefslogtreecommitdiff
path: root/src/tw
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-10-24 23:27:32 -0700
committeriximeow <me@iximeow.net>2017-10-24 23:27:32 -0700
commit7f71f824801950b11ff6dcab9eb45549fbe4dce6 (patch)
tree71d1c589254fad0ce578262532118da11a6296e6 /src/tw
parentc2608157f343ac16592e626536673b16849382ee (diff)
add display
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