ndi: Fix Nightly mismatched_lifetime_syntaxes lint

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2291>
This commit is contained in:
L. E. Segovia 2025-06-12 18:07:10 -03:00
parent b2d6c53ac1
commit eeb811115f
3 changed files with 4 additions and 4 deletions

View file

@ -91,7 +91,7 @@ impl FindInstance {
unsafe { NDIlib_find_wait_for_sources(self.0.as_ptr(), timeout_in_ms) }
}
pub fn get_current_sources(&mut self) -> Vec<Source> {
pub fn get_current_sources(&mut self) -> Vec<Source<'_>> {
unsafe {
let mut no_sources = mem::MaybeUninit::uninit();
let sources_ptr =
@ -402,7 +402,7 @@ pub struct SendInstance(ptr::NonNull<::std::os::raw::c_void>);
unsafe impl Send for SendInstance {}
impl SendInstance {
pub fn builder(ndi_name: &str) -> SendBuilder {
pub fn builder(ndi_name: &str) -> SendBuilder<'_> {
SendBuilder {
ndi_name,
clock_video: false,

View file

@ -14,7 +14,7 @@ impl NdiSinkAudioMeta {
pub fn add(
buffer: &mut gst::BufferRef,
buffers: Vec<(gst::Buffer, gst_audio::AudioInfo, i64)>,
) -> gst::MetaRefMut<Self, gst::meta::Standalone> {
) -> gst::MetaRefMut<'_, Self, gst::meta::Standalone> {
unsafe {
// Manually dropping because gst_buffer_add_meta() takes ownership of the
// content of the struct

View file

@ -38,7 +38,7 @@ impl NdiSrcMeta {
pub fn add(
buffer: &mut gst::BufferRef,
ndi_buffer: Buffer,
) -> gst::MetaRefMut<Self, gst::meta::Standalone> {
) -> gst::MetaRefMut<'_, Self, gst::meta::Standalone> {
unsafe {
// Manually dropping because gst_buffer_add_meta() takes ownership of the
// content of the struct