summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 3a07158..8a139af 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,11 +17,12 @@ use tui::markdown::Markdown;
fn main() -> Result<()> {
// Tokio runtime
- Runtime::new()?
- .block_on(run())
- .map(|qs| {
+ let mut rt = Runtime::new()?;
+ rt.block_on(run())
+ .and_then(|qs| {
// Run TUI
qs.map(tui::run);
+ Ok(())
})
.or_else(|e: Error| {
// Handle errors