chore: Use PanicHookInfo instead of PanicInfo

Renamed in Rust 1.81.0, see https://releases.rs/docs/1.81.0/#compatibility-notes
This commit is contained in:
Kamil Jarosz 2024-09-05 08:13:55 +02:00
parent e61fc254d1
commit 5760aa7a8e
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ use ruffle_core::StaticCallstack;
use std::cell::RefCell;
use std::env;
use std::fs::File;
use std::panic::PanicInfo;
use std::panic::PanicHookInfo;
use tracing_subscriber::fmt::Layer;
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
@ -74,7 +74,7 @@ fn init() {
}));
}
fn panic_hook(info: &PanicInfo) {
fn panic_hook(info: &PanicHookInfo) {
CALLSTACK.with(|callstack| {
if let Some(callstack) = &*callstack.borrow() {
callstack.avm2(|callstack| println!("AVM2 stack trace: {callstack}"))