mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-22 16:16:37 +00:00
meta: Fix MetaRefMut::upcast_mut()
to return a mutable reference
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1390>
This commit is contained in:
parent
a784ea2d0b
commit
12c9ada9e0
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ impl<'a, T, U> MetaRefMut<'a, T, U> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn upcast_mut(&mut self) -> &MetaRefMut<'a, Meta, U> {
|
||||
pub fn upcast_mut(&mut self) -> &mut MetaRefMut<'a, Meta, U> {
|
||||
unsafe { &mut *(self as *mut MetaRefMut<'a, T, U> as *mut MetaRefMut<'a, Meta, U>) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue