ptp-helper: Silence deprecation warning

The new API is only available since Rust 1.81.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7678>
This commit is contained in:
Sebastian Dröge 2024-10-17 20:21:53 +03:00 committed by GStreamer Marge Bot
parent d56fa94146
commit 25184cf496

View file

@ -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 /// 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) { fn panic_hook(info: &std::panic::PanicInfo) {
error!("Panicked. {}", info); error!("Panicked. {}", info);
} }