From 1745f5fffbff716d6c2bc4b2ba8da31ac917609a Mon Sep 17 00:00:00 2001 From: AndrianoTurner Date: Sat, 13 Sep 2025 23:57:55 +0300 Subject: [PATCH 1/2] fix: reset terminal on panic --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index b752b5d..8554d3e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -109,7 +109,7 @@ impl App { Err(e) => { eprintln!("{e}"); eprintln!("Make sure iwd daemon is up and running"); - process::exit(1); + Err(e)? } }; @@ -180,7 +180,7 @@ impl App { Err(e) => { eprintln!("{e}"); eprintln!("Make sure iwd daemon is up and running"); - process::exit(1); + Err(e)? } }; From 3a04223cb44122bfe7b240b1d201fc2a0d3b8a7f Mon Sep 17 00:00:00 2001 From: AndrianoTurner Date: Thu, 25 Sep 2025 15:52:13 +0300 Subject: [PATCH 2/2] fix: clippy --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 8554d3e..1dda6fd 100644 --- a/src/app.rs +++ b/src/app.rs @@ -8,7 +8,7 @@ use ratatui::{ }; use std::{ error::Error, - process::{self, exit}, + process::exit, sync::{Arc, atomic::AtomicBool}, }; use tokio::sync::mpsc::UnboundedSender;