From 943824e02fa771fa8350e4da90f2c9591ec4647e Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Sun, 1 Oct 2017 23:25:46 -0700 Subject: yank out more parts, decouple events and display --- commands/view.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/view.rs b/commands/view.rs index 1470f90..d01ff1b 100644 --- a/commands/view.rs +++ b/commands/view.rs @@ -5,6 +5,8 @@ use commands::Command; use std::str::FromStr; +use display; + pub static VIEW: Command = Command { keyword: "view", params: 1, @@ -15,6 +17,6 @@ fn view(line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer) { // TODO handle this unwrap let inner_twid = u64::from_str(&line).unwrap(); let twete = tweeter.tweet_by_innerid(inner_twid).unwrap(); - ::render_twete(&twete.id, tweeter); + display::render_twete(&twete.id, tweeter); println!("link: https://twitter.com/i/web/status/{}", twete.id); } -- cgit v1.1