mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
gstreamer: Remove unnecessary trait bounds
This commit is contained in:
parent
f17781e188
commit
7bd4d770ff
1 changed files with 2 additions and 9 deletions
|
@ -56,10 +56,7 @@ pub trait ClockImplExt: ObjectSubclass {
|
|||
|
||||
fn parent_unschedule(&self, id: &ClockId);
|
||||
|
||||
fn wake_id(&self, id: &ClockId)
|
||||
where
|
||||
Self: ObjectSubclass,
|
||||
<Self as ObjectSubclass>::Type: IsA<Clock>;
|
||||
fn wake_id(&self, id: &ClockId);
|
||||
}
|
||||
|
||||
impl<T: ClockImpl> ClockImplExt for T {
|
||||
|
@ -170,11 +167,7 @@ impl<T: ClockImpl> ClockImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
fn wake_id(&self, id: &ClockId)
|
||||
where
|
||||
Self: ObjectSubclass,
|
||||
<Self as ObjectSubclass>::Type: IsA<Clock>,
|
||||
{
|
||||
fn wake_id(&self, id: &ClockId) {
|
||||
let clock = self.instance();
|
||||
let clock = unsafe { clock.unsafe_cast_ref::<Clock>() };
|
||||
|
||||
|
|
Loading…
Reference in a new issue