Fix some more new clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1167>
This commit is contained in:
Sebastian Dröge 2022-12-15 18:35:29 +02:00
parent c32607a010
commit 857f3740e2

View file

@ -38,7 +38,7 @@ impl<O: IsA<RTPHeaderExtension>> RTPHeaderExtensionExtManual for O {
data: &[u8], data: &[u8],
buffer: &mut gst::BufferRef, buffer: &mut gst::BufferRef,
) -> bool { ) -> bool {
let size = data.len() as usize; let size = data.len();
unsafe { unsafe {
from_glib(ffi::gst_rtp_header_extension_read( from_glib(ffi::gst_rtp_header_extension_read(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
@ -57,7 +57,7 @@ impl<O: IsA<RTPHeaderExtension>> RTPHeaderExtensionExtManual for O {
output: &mut gst::BufferRef, output: &mut gst::BufferRef,
data: &mut [u8], data: &mut [u8],
) -> Result<usize, glib::BoolError> { ) -> Result<usize, glib::BoolError> {
let size = data.len() as usize; let size = data.len();
unsafe { unsafe {
let res = ffi::gst_rtp_header_extension_write( let res = ffi::gst_rtp_header_extension_write(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,