aboutsummaryrefslogtreecommitdiff
path: root/src/commands/quit.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-11-25 18:39:04 -0800
committeriximeow <me@iximeow.net>2017-11-25 18:39:04 -0800
commit983f073965024770f70ab29611f593c961499653 (patch)
treebdd9e3eef0496018be29635a72aba26b0fc1bb64 /src/commands/quit.rs
parent2a7cd56a1ad669b064625a9f49e20089e6767b73 (diff)
extract DisplayInfo from TwitterCache
what a mess... threading this through to any point where printing happens is upsetting. probably should be a global mutable behind accessors.
Diffstat (limited to 'src/commands/quit.rs')
-rw-r--r--src/commands/quit.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/quit.rs b/src/commands/quit.rs
index 0f5c582..45390a3 100644
--- a/src/commands/quit.rs
+++ b/src/commands/quit.rs
@@ -1,3 +1,4 @@
+use display::DisplayInfo;
use tw;
use ::Queryer;
@@ -12,6 +13,6 @@ pub static QUIT: Command = Command {
help_str: "Gracefully exit this thing"
};
-fn quit(_line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer) {
+fn quit(_line: String, tweeter: &mut tw::TwitterCache, _queryer: &mut Queryer, display_info: &mut DisplayInfo) {
tweeter.state = tw::AppState::Shutdown;
}