File 0004-json-Fix-Nightly-mismatched_lifetime_syntaxes.patch of Package gstreamer-plugins-rs.41072

From eb91bd7bf4b5ae7576105d2799b49d01d0ad129d Mon Sep 17 00:00:00 2001
From: "L. E. Segovia" <amy@centricular.com>
Date: Thu, 12 Jun 2025 19:04:55 -0300
Subject: [PATCH] json: Fix Nightly mismatched_lifetime_syntaxes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2291>
---
 text/json/src/jsongstparse/imp.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs
index 927d4c7c9a..2b88aabe2b 100644
--- a/text/json/src/jsongstparse/imp.rs
+++ b/text/json/src/jsongstparse/imp.rs
@@ -103,7 +103,7 @@ enum Line<'a> {
 }
 
 impl State {
-    fn line(&mut self, drain: bool) -> Result<Option<Line>, (&[u8], serde_json::Error)> {
+    fn line(&mut self, drain: bool) -> Result<Option<Line<'_>>, (&[u8], serde_json::Error)> {
         let line = if self.replay_last_line {
             self.replay_last_line = false;
             &self.last_raw_line
@@ -320,7 +320,7 @@ impl JsonGstParse {
         &self,
         pts: impl Into<Option<gst::ClockTime>>,
         mut state: MutexGuard<State>,
-    ) -> MutexGuard<State> {
+    ) -> MutexGuard<'_, State> {
         if pts.into().opt_ge(state.segment.start()).unwrap_or(false) {
             state.seeking = false;
             state.discont = true;
-- 
GitLab

openSUSE Build Service is sponsored by