Minor miniobject code cleanup

This commit is contained in:
Sebastian Dröge 2017-08-09 20:06:27 +03:00
parent f00af84105
commit 146b3092aa

View file

@ -166,13 +166,13 @@ impl<T: MiniObject + Eq> Eq for GstRc<T> { }
impl<T: MiniObject + fmt::Debug> fmt::Debug for GstRc<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
(unsafe { &*self.obj }).fmt(f)
self.as_ref().fmt(f)
}
}
impl<T: MiniObject + fmt::Display> fmt::Display for GstRc<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
(unsafe { &*self.obj }).fmt(f)
self.as_ref().fmt(f)
}
}