diff --git a/subprojects/gstreamer/libs/gst/helpers/ptp/main.rs b/subprojects/gstreamer/libs/gst/helpers/ptp/main.rs index 6be77b726e..094be5a3ae 100644 --- a/subprojects/gstreamer/libs/gst/helpers/ptp/main.rs +++ b/subprojects/gstreamer/libs/gst/helpers/ptp/main.rs @@ -406,6 +406,8 @@ fn run() -> Result<(), Error> { } /// Custom panic hook so we can print them to stderr in a format the main process understands +// `PanicHookInfo` is the new API and only stable since Rust 1.81. +#[allow(deprecated)] fn panic_hook(info: &std::panic::PanicInfo) { error!("Panicked. {}", info); }