diff options
| author | krolxon <krolyxon@tutanota.com> | 2024-05-13 13:41:26 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2024-05-13 13:41:26 +0530 |
| commit | bb5bcea3ff0f3205d087637ab485ef066309adeb (patch) | |
| tree | f01679f5c49419b076b754ce8a535a767795d694 /src/main.rs | |
| parent | 1e02da68ccbf3abc6465a72cc01b3487f2285048 (diff) | |
fix #4
Diffstat (limited to 'src/main.rs')
| -rwxr-xr-x | src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 3e40ead..0b856b4 100755 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +use ratatui::prelude::*; use rmptui::app::App; use rmptui::app::AppResult; use rmptui::event::event::Event; @@ -6,10 +7,6 @@ use rmptui::event::handler; use rmptui::tui; use std::env; use std::io; -use ratatui::prelude::*; - -pub type Result<T> = core::result::Result<T, Error>; -pub type Error = Box<dyn std::error::Error>; fn main() -> AppResult<()> { // Connection @@ -26,7 +23,7 @@ fn main() -> AppResult<()> { tui.init()?; // initial directory read - app.browser.update_directory(&mut app.conn).unwrap(); + app.browser.update_directory(&mut app.conn)?; while app.running { tui.draw(&mut app)?; |
