mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
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> {
|
impl<T: MiniObject + fmt::Debug> fmt::Debug for GstRc<T> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
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> {
|
impl<T: MiniObject + fmt::Display> fmt::Display for GstRc<T> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
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