Fix new 1.81 clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1515>
This commit is contained in:
Sebastian Dröge 2024-09-05 21:52:35 +03:00
parent b9d34e1c21
commit 628f040e2d
4 changed files with 6 additions and 6 deletions

View file

@ -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);
}
}

View file

@ -1317,7 +1317,7 @@ mod tests {
crate::init().unwrap();
let caps = Caps::builder("foo/bar").build();
format!("{caps}");
let _ = format!("{caps}");
}
#[test]

View file

@ -1355,7 +1355,7 @@ mod tests {
fn test_display() {
crate::init().unwrap();
format!("{}", TagList::new());
let _ = format!("{}", TagList::new());
}
#[test]

View file

@ -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> {