summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-02-18 17:30:02 +0100
committerrabite <rabite@posteo.de>2019-02-18 17:30:02 +0100
commitb4ed9cd6893088af5103ec4e18552669aa52eb93 (patch)
tree20c61700925265c3dc20a277569bd6b7e892e2e5 /src/main.rs
parentad44f6f2fc586bbf0cf8c131467e93df58295b2d (diff)
preview v3
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 7de9a46..0add6c9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,7 +5,6 @@ extern crate termion;
extern crate unicode_width;
#[macro_use]
extern crate lazy_static;
-#[macro_use]
extern crate failure;
#[macro_use]
extern crate failure_derive;
@@ -23,7 +22,6 @@ use termion::raw::IntoRawMode;
use termion::screen::AlternateScreen;
use std::io::{stdout, Write};
-use std::marker::Send;
mod coordinates;
mod file_browser;
@@ -42,16 +40,14 @@ mod async_widget;
mod fail;
use window::Window;
-///use async_widget::AsyncPlug;
-use widget::Widget;
+
fn main() {
- let mut bufout = std::io::BufWriter::new(std::io::stdout());
+ let bufout = std::io::BufWriter::new(std::io::stdout());
// Need to do this here to actually turn terminal into raw mode...
let mut _screen = AlternateScreen::from(Box::new(bufout));
let mut _stdout = MouseTerminal::from(stdout().into_raw_mode().unwrap());
-
let filebrowser = crate::file_browser::FileBrowser::new().unwrap();
let mut tabview = crate::tabview::TabView::new();