From be0006b2938f259079e91351032de0238af4437a Mon Sep 17 00:00:00 2001 From: Brad Culwell Date: Wed, 14 Aug 2024 15:16:25 +0000 Subject: [PATCH] fix: out of order borrow --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index d005657..77c4655 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,11 +79,11 @@ async fn main() -> Result<(), Box> { app.run_app::<_, _, AppConfig, false>(&mut terminal, sync, config) .await?; - #[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))] - drop(terminal); // Drop terminal to leave raw mode and alternate screen - util::term::reset_terminal()?; terminal.show_cursor()?; + #[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))] + drop(terminal); // Drop terminal to leave raw mode and alternate screen + std::process::exit(0); }