Skip to content

Commit 406a844

Browse files
committed
move setup_panic at the top of the main function
1 parent 07c0858 commit 406a844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ use onefetch::ui::printer::Printer;
99
use std::io;
1010

1111
fn main() -> Result<()> {
12+
setup_panic!();
13+
1214
#[cfg(windows)]
1315
let _ = enable_ansi_support::enable_ansi_support();
1416

15-
setup_panic!();
16-
1717
let config = cli::Config::parse();
1818

1919
if config.languages {

0 commit comments

Comments
 (0)