rusticl/mesa: remove unnecessary lifetimes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
Karol Herbst 2025-10-02 17:19:14 +02:00 committed by Eric Engestrom
parent 301afbc313
commit 7cae6d997d

View file

@ -156,7 +156,7 @@ impl PipeScreenOwned {
/// `screen` must be equivalent to a pointer retrieved via [PipeScreenOwned::into_raw]. /// `screen` must be equivalent to a pointer retrieved via [PipeScreenOwned::into_raw].
/// This function does not increase reference count; use with a pointer not accounted /// This function does not increase reference count; use with a pointer not accounted
/// for in the reference count could lead to undefined behavior. /// for in the reference count could lead to undefined behavior.
pub(super) unsafe fn from_raw<'s>(screen: *mut pipe_screen) -> Self { pub(super) unsafe fn from_raw(screen: *mut pipe_screen) -> Self {
// SAFETY: PipeScreenOwned is transparent over *mut pipe_screen // SAFETY: PipeScreenOwned is transparent over *mut pipe_screen
unsafe { mem::transmute(screen) } unsafe { mem::transmute(screen) }
} }