mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 02:51:10 +00:00
Fix new 1.81 clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1515>
This commit is contained in:
parent
b9d34e1c21
commit
628f040e2d
4 changed files with 6 additions and 6 deletions
|
@ -1396,8 +1396,8 @@ mod tests {
|
|||
fn test_display() {
|
||||
gst::init().unwrap();
|
||||
|
||||
format!("{}", "sRGB".parse::<crate::VideoColorimetry>().unwrap());
|
||||
format!("{}", crate::VideoFieldOrder::TopFieldFirst);
|
||||
format!("{}", crate::VideoInterlaceMode::Progressive);
|
||||
let _ = format!("{}", "sRGB".parse::<crate::VideoColorimetry>().unwrap());
|
||||
let _ = format!("{}", crate::VideoFieldOrder::TopFieldFirst);
|
||||
let _ = format!("{}", crate::VideoInterlaceMode::Progressive);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1317,7 +1317,7 @@ mod tests {
|
|||
crate::init().unwrap();
|
||||
|
||||
let caps = Caps::builder("foo/bar").build();
|
||||
format!("{caps}");
|
||||
let _ = format!("{caps}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1355,7 +1355,7 @@ mod tests {
|
|||
fn test_display() {
|
||||
crate::init().unwrap();
|
||||
|
||||
format!("{}", TagList::new());
|
||||
let _ = format!("{}", TagList::new());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -18,7 +18,7 @@ pub struct ObjectLockGuard<'a, T: ?Sized> {
|
|||
|
||||
impl<'a, T> ObjectLockGuard<'a, T>
|
||||
where
|
||||
T: IsA<crate::Object> + ?Sized,
|
||||
T: IsA<crate::Object>,
|
||||
{
|
||||
#[inline]
|
||||
pub fn acquire(obj: &'a T) -> ObjectLockGuard<'a, T> {
|
||||
|
|
Loading…
Reference in a new issue