Skip to content

Commit

Permalink
fix: out of order borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Aug 14, 2024
1 parent 3c3323c commit be0006b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
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);
}

0 comments on commit be0006b

Please sign in to comment.