gstreamer: Remove unnecessary trait bounds

This commit is contained in:
Sebastian Dröge 2022-10-08 22:12:47 +03:00
parent f17781e188
commit 7bd4d770ff

View file

@ -56,10 +56,7 @@ pub trait ClockImplExt: ObjectSubclass {
fn parent_unschedule(&self, id: &ClockId); fn parent_unschedule(&self, id: &ClockId);
fn wake_id(&self, id: &ClockId) fn wake_id(&self, id: &ClockId);
where
Self: ObjectSubclass,
<Self as ObjectSubclass>::Type: IsA<Clock>;
} }
impl<T: ClockImpl> ClockImplExt for T { impl<T: ClockImpl> ClockImplExt for T {
@ -170,11 +167,7 @@ impl<T: ClockImpl> ClockImplExt for T {
} }
} }
fn wake_id(&self, id: &ClockId) fn wake_id(&self, id: &ClockId) {
where
Self: ObjectSubclass,
<Self as ObjectSubclass>::Type: IsA<Clock>,
{
let clock = self.instance(); let clock = self.instance();
let clock = unsafe { clock.unsafe_cast_ref::<Clock>() }; let clock = unsafe { clock.unsafe_cast_ref::<Clock>() };