Skip to content

Commit

Permalink
Format with consistent style
Browse files Browse the repository at this point in the history
  • Loading branch information
Austen Adler committed Jan 17, 2025
1 parent 9461d1f commit c0753ab
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,12 @@ fn print_banner() {
}

fn main() {
{
// If on Windows, free and reattach to the parent console when using as a CLI tool
// Either of these can fail, but if they do it is not an issue, so the return value is ignored
#[cfg(target_os = "windows")]
unsafe {
let _ = FreeConsole();
let _ = AttachConsole(ATTACH_PARENT_PROCESS);
}
// If on Windows, free and reattach to the parent console when using as a CLI tool
// Either of these can fail, but if they do it is not an issue, so the return value is ignored
#[cfg(target_os = "windows")]
unsafe {
let _ = FreeConsole();
let _ = AttachConsole(ATTACH_PARENT_PROCESS);
}

// Parse arguments to decide whether to launch the UI or CLI
Expand Down

0 comments on commit c0753ab

Please sign in to comment.