Skip to content

Commit

Permalink
move setup_panic at the top of the main function
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Mar 17, 2023
1 parent 07c0858 commit 406a844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ use onefetch::ui::printer::Printer;
use std::io;

fn main() -> Result<()> {
setup_panic!();

#[cfg(windows)]
let _ = enable_ansi_support::enable_ansi_support();

setup_panic!();

let config = cli::Config::parse();

if config.languages {
Expand Down

0 comments on commit 406a844

Please sign in to comment.