forked from mirrors/gstreamer-rs
meta: Fix MetaRefMut::upcast_mut()
to return a mutable reference
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1394>
This commit is contained in:
parent
abbfd490d9
commit
e0eab9d19b
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