Skip to content

Commit 537b0f8

Browse files
kjaroshtorokati44
authored andcommitted
chore: Use PanicHookInfo instead of PanicInfo
Renamed in Rust 1.81.0, see https://releases.rs/docs/1.81.0/#compatibility-notes
1 parent e61fc25 commit 537b0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

desktop/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use ruffle_core::StaticCallstack;
2929
use std::cell::RefCell;
3030
use std::env;
3131
use std::fs::File;
32-
use std::panic::PanicInfo;
32+
use std::panic::PanicHookInfo;
3333
use tracing_subscriber::fmt::Layer;
3434
use tracing_subscriber::layer::SubscriberExt;
3535
use tracing_subscriber::util::SubscriberInitExt;
@@ -74,7 +74,7 @@ fn init() {
7474
}));
7575
}
7676

77-
fn panic_hook(info: &PanicInfo) {
77+
fn panic_hook(info: &PanicHookInfo) {
7878
CALLSTACK.with(|callstack| {
7979
if let Some(callstack) = &*callstack.borrow() {
8080
callstack.avm2(|callstack| println!("AVM2 stack trace: {callstack}"))

0 commit comments

Comments
 (0)