mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-09-01 09:23:50 +00:00
Fix new clippy 1.89 warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1766>
This commit is contained in:
parent
f57dc768dd
commit
0f9f71821a
2 changed files with 8 additions and 12 deletions
|
@ -374,9 +374,7 @@ pub trait BaseTransformImplExt: sealed::Sealed + ObjectSubclass {
|
||||||
"transform doesn't operate in-place"
|
"transform doesn't operate in-place"
|
||||||
))
|
))
|
||||||
} else {
|
} else {
|
||||||
unreachable!(concat!(
|
unreachable!("parent `get_unit_size` called while transform operates in-place")
|
||||||
"parent `get_unit_size` called while transform operates in-place"
|
|
||||||
))
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -501,9 +499,7 @@ pub trait BaseTransformImplExt: sealed::Sealed + ObjectSubclass {
|
||||||
if !self.obj().unsafe_cast_ref::<BaseTransform>().is_in_place() {
|
if !self.obj().unsafe_cast_ref::<BaseTransform>().is_in_place() {
|
||||||
Err(gst::FlowError::NotSupported)
|
Err(gst::FlowError::NotSupported)
|
||||||
} else {
|
} else {
|
||||||
unreachable!(concat!(
|
unreachable!("parent `transform` called while transform operates in-place");
|
||||||
"parent `transform` called while transform operates in-place"
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -523,9 +519,9 @@ pub trait BaseTransformImplExt: sealed::Sealed + ObjectSubclass {
|
||||||
"transform operates in-place"
|
"transform operates in-place"
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
unreachable!(concat!(
|
unreachable!(
|
||||||
"parent `transform` called while transform doesn't operate in-place"
|
"parent `transform` called while transform doesn't operate in-place"
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ pub trait VideoFilterImplExt: sealed::Sealed + ObjectSubclass {
|
||||||
{
|
{
|
||||||
Err(gst::FlowError::NotSupported)
|
Err(gst::FlowError::NotSupported)
|
||||||
} else {
|
} else {
|
||||||
unreachable!(concat!(
|
unreachable!(
|
||||||
"parent `transform_frame` called while transform operates in-place"
|
"parent `transform_frame` called while transform operates in-place"
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -125,9 +125,9 @@ pub trait VideoFilterImplExt: sealed::Sealed + ObjectSubclass {
|
||||||
"transform operates in-place"
|
"transform operates in-place"
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
unreachable!(concat!(
|
unreachable!(
|
||||||
"parent `transform_frame` called while transform doesn't operate in-place"
|
"parent `transform_frame` called while transform doesn't operate in-place"
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue