diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-05-12 21:59:30 +0200 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-05-12 21:59:30 +0200 |
| commit | 78113ac6bc17546a91b4b597417184dc0f89eab1 (patch) | |
| tree | 1f63dcec48f7f10c2546b9108b2c05ed1a261f9d /src/main.rs | |
| parent | 4c3736eb368fa106dfa6c29a1794aeb1d4c9a1de (diff) | |
| download | pish-78113ac6bc17546a91b4b597417184dc0f89eab1.tar.gz | |
clippy
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index fc44fa5..89b2e64 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,14 +13,14 @@ fn main() { // it is quite annoying when the terminal window closes due to a crash, so let's just catch all panics loop { let res = std::panic::catch_unwind(pish::event_loop); - match res { - Ok(_) => break, - Err(_) => { - #[cfg(debug_assertions)] - unsafe { - pish::reload::continue_reload() - } - } + + if res.is_ok() { + break; + } + + #[cfg(debug_assertions)] + unsafe { + pish::reload::continue_reload() } // prevent incredibly fast panic loops |
