Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d7f4e14a by Alexandre Janniaux at 2026-01-22T13:34:50+00:00
vlcrs-core: tracer: fix mismatched_lifetime_syntaxes warning

Fix the following warning by making the elided lifetime explicit
in the return type:

    warning: hiding a lifetime that's elided elsewhere is confusing
       --> src/rust/vlcrs-core/src/tracer/mod.rs:243:20
        |
    243 |     pub fn entries(&self) -> TraceIterator {
        |                    ^^^^^     ^^^^^^^^^^^^^ the same lifetime is 
hidden here
        |                    |
        |                    the lifetime is elided here
        |
        = help: the same lifetime is referred to in inconsistent ways,
                making the signature confusing

- - - - -


1 changed file:

- src/rust/vlcrs-core/src/tracer/mod.rs


Changes:

=====================================
src/rust/vlcrs-core/src/tracer/mod.rs
=====================================
@@ -240,7 +240,7 @@ pub struct Trace(NonNull<sys::vlc_tracer_trace>);
 
 impl Trace {
     /// Get an iterator over the trace entries.
-    pub fn entries(&self) -> TraceIterator {
+    pub fn entries(&self) -> TraceIterator<'_> {
         self.into_iter()
     }
 }



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/d7f4e14a638654b76a9614e4b110ef226942c2e1

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/d7f4e14a638654b76a9614e4b110ef226942c2e1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to