From 580f44092358cc260db00ec9871caecac62de361 Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Tue, 24 Oct 2017 23:27:32 -0700 Subject: add display --- src/tw/events.rs | 1 + src/tw/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tw') 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 -- cgit v1.1