forked from mirrors/gstreamer-rs
Minor miniobject code cleanup
This commit is contained in:
parent
f00af84105
commit
146b3092aa
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue