mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-09-01 01:13:48 +00:00
Fix new clippy 1.89 warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1763>
This commit is contained in:
parent
51b66ce5fe
commit
ad81cf9cca
2 changed files with 8 additions and 12 deletions
|
@ -369,9 +369,7 @@ pub trait BaseTransformImplExt: BaseTransformImpl {
|
|||
"transform doesn't operate in-place"
|
||||
))
|
||||
} else {
|
||||
unreachable!(concat!(
|
||||
"parent `get_unit_size` called while transform operates in-place"
|
||||
))
|
||||
unreachable!("parent `get_unit_size` called while transform operates in-place")
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -494,9 +492,7 @@ pub trait BaseTransformImplExt: BaseTransformImpl {
|
|||
if !self.obj().unsafe_cast_ref::<BaseTransform>().is_in_place() {
|
||||
Err(gst::FlowError::NotSupported)
|
||||
} else {
|
||||
unreachable!(concat!(
|
||||
"parent `transform` called while transform operates in-place"
|
||||
));
|
||||
unreachable!("parent `transform` called while transform operates in-place");
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -516,9 +512,9 @@ pub trait BaseTransformImplExt: BaseTransformImpl {
|
|||
"transform operates in-place"
|
||||
));
|
||||
} else {
|
||||
unreachable!(concat!(
|
||||
unreachable!(
|
||||
"parent `transform` called while transform doesn't operate in-place"
|
||||
));
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -94,9 +94,9 @@ pub trait VideoFilterImplExt: VideoFilterImpl {
|
|||
{
|
||||
Err(gst::FlowError::NotSupported)
|
||||
} else {
|
||||
unreachable!(concat!(
|
||||
unreachable!(
|
||||
"parent `transform_frame` called while transform operates in-place"
|
||||
));
|
||||
);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -120,9 +120,9 @@ pub trait VideoFilterImplExt: VideoFilterImpl {
|
|||
"transform operates in-place"
|
||||
));
|
||||
} else {
|
||||
unreachable!(concat!(
|
||||
unreachable!(
|
||||
"parent `transform_frame` called while transform doesn't operate in-place"
|
||||
));
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue