mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update deprecated use of PanicInfo to PanicHookInfo (#34659)
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
parent
60d8d5a841
commit
4ddcba240b
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
use std::f32::INFINITY;
|
||||
use std::ops::Range;
|
||||
use std::panic::{self, PanicInfo};
|
||||
use std::panic::{self, PanicHookInfo};
|
||||
use std::sync::{Mutex, MutexGuard};
|
||||
use std::{thread, u32};
|
||||
|
||||
|
@ -28,7 +28,7 @@ static PANIC_HOOK_MUTEX: Mutex<()> = Mutex::new(());
|
|||
struct PanicMsgSuppressor<'a> {
|
||||
#[allow(dead_code)]
|
||||
mutex_guard: MutexGuard<'a, ()>,
|
||||
prev_hook: Option<Box<dyn Fn(&PanicInfo<'_>) + 'static + Sync + Send>>,
|
||||
prev_hook: Option<Box<dyn Fn(&PanicHookInfo<'_>) + 'static + Sync + Send>>,
|
||||
}
|
||||
|
||||
impl<'a> PanicMsgSuppressor<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue