Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Oct 18, 2024
1 parent 5888f29 commit 86d38e7
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
@@ -1,7 +1,7 @@
mod app;
mod editor;

use std::panic::{Location, PanicInfo};
use std::panic::{Location, PanicHookInfo};
use std::sync::atomic::AtomicBool;
use std::sync::atomic::Ordering::{Relaxed, SeqCst};

Expand All @@ -17,7 +17,7 @@ use crate::app::App;

fn main() {
yew::set_custom_panic_hook({
Box::new(move |info: &PanicInfo| {
Box::new(move |info: &PanicHookInfo<'_>| {
if PANICKED
.compare_exchange(false, true, SeqCst, Relaxed)
.is_ok()
Expand Down

0 comments on commit 86d38e7

Please sign in to comment.