mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
rusticl/mesa: remove unnecessary lifetimes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
301afbc313
commit
7cae6d997d
1 changed files with 1 additions and 1 deletions
|
|
@ -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) }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue