From 25184cf496ba73452adb087338e3a943a804495c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 17 Oct 2024 20:21:53 +0300 Subject: [PATCH] ptp-helper: Silence deprecation warning The new API is only available since Rust 1.81. Part-of: --- subprojects/gstreamer/libs/gst/helpers/ptp/main.rs | 2 ++ 1 file changed, 2 insertions(+) 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); }