mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01: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::f32::INFINITY;
|
||||||
use std::ops::Range;
|
use std::ops::Range;
|
||||||
use std::panic::{self, PanicInfo};
|
use std::panic::{self, PanicHookInfo};
|
||||||
use std::sync::{Mutex, MutexGuard};
|
use std::sync::{Mutex, MutexGuard};
|
||||||
use std::{thread, u32};
|
use std::{thread, u32};
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ static PANIC_HOOK_MUTEX: Mutex<()> = Mutex::new(());
|
||||||
struct PanicMsgSuppressor<'a> {
|
struct PanicMsgSuppressor<'a> {
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
mutex_guard: MutexGuard<'a, ()>,
|
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> {
|
impl<'a> PanicMsgSuppressor<'a> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue