aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/view.rs4
1 files changed, 3 insertions, 1 deletions
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);
}