mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
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:
parent
d56fa94146
commit
25184cf496
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue