aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 58c084e..a1a4220 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,8 +1,8 @@
mod db;
-mod state;
+mod buffer;
-use crate::state::{Client, State};
-use crate::state::Threads;
+use crate::buffer::{Client, Buffer};
+use crate::buffer::Threads;
use std::io::{stdin, stdout};
use termion::raw::IntoRawMode;
@@ -18,6 +18,6 @@ fn main() {
let threads = Threads::from_query(String::from("tag:inbox"));
threads.init(&mut screen);
- let client = Client::new(State::Threads(threads));
+ let client = Client::new(Buffer::Threads(threads));
client.run(screen, stdin);
}