json: Fix Nightly mismatched_lifetime_syntaxes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2291>
This commit is contained in:
L. E. Segovia 2025-06-12 19:04:55 -03:00
parent 0bdf3c1b87
commit eb91bd7bf4

View file

@ -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;