From 4179cee401e93ea672739e692d142e58cce3f78a Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 9 Dec 2024 14:42:49 +0100 Subject: change result handling in main --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 1a465ca..55dc08f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,3 @@ -use mlua::prelude::*; -use std::io; - pub mod app; pub mod sheet; pub mod tui; @@ -11,14 +8,14 @@ pub mod state; pub mod cursor; pub mod tuicursor; -fn run() -> io::Result<()> { +fn run() -> std::io::Result<()> { let mut terminal = tui::init()?; let app_result = app::App::new().run(&mut terminal); tui::restore()?; app_result } -fn main() -> LuaResult<()> { +fn main() -> std::io::Result<()> { run()?; Ok(()) } -- cgit v1.2.3-70-g09d2