Skip to content

Commit be0006b

Browse files
committed
fix: out of order borrow
1 parent 3c3323c commit be0006b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
7979
app.run_app::<_, _, AppConfig, false>(&mut terminal, sync, config)
8080
.await?;
8181

82-
#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))]
83-
drop(terminal); // Drop terminal to leave raw mode and alternate screen
84-
8582
util::term::reset_terminal()?;
8683
terminal.show_cursor()?;
8784

85+
#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))]
86+
drop(terminal); // Drop terminal to leave raw mode and alternate screen
87+
8888
std::process::exit(0);
8989
}

0 commit comments

Comments
 (0)