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:
parent
e61fc254d1
commit
5760aa7a8e
|
@ -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}"))
|
||||
|
|
Loading…
Reference in New Issue