Don't require &mut self for GstRc::get_mut()

This commit is contained in:
Sebastian Dröge 2017-10-05 14:48:33 +03:00
parent 884c9790ef
commit 4b77c18b5b

View file

@ -76,7 +76,7 @@ impl<T: MiniObject> GstRc<T> {
}
}
pub fn get_mut(&mut self) -> Option<&mut T> {
pub fn get_mut(&self) -> Option<&mut T> {
if self.is_writable() {
Some(unsafe { &mut *self.obj })
} else {