From 628f040e2dcc56cf4b8478a1c3a3e39d3e6d9f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Sep 2024 21:52:35 +0300 Subject: [PATCH] Fix new 1.81 clippy warnings Part-of: --- gstreamer-video/src/video_info.rs | 6 +++--- gstreamer/src/caps.rs | 2 +- gstreamer/src/tags.rs | 2 +- gstreamer/src/utils.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gstreamer-video/src/video_info.rs b/gstreamer-video/src/video_info.rs index 9101c68e0..dc6d889f8 100644 --- a/gstreamer-video/src/video_info.rs +++ b/gstreamer-video/src/video_info.rs @@ -1396,8 +1396,8 @@ mod tests { fn test_display() { gst::init().unwrap(); - format!("{}", "sRGB".parse::().unwrap()); - format!("{}", crate::VideoFieldOrder::TopFieldFirst); - format!("{}", crate::VideoInterlaceMode::Progressive); + let _ = format!("{}", "sRGB".parse::().unwrap()); + let _ = format!("{}", crate::VideoFieldOrder::TopFieldFirst); + let _ = format!("{}", crate::VideoInterlaceMode::Progressive); } } diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index 70856c890..cd01816a4 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -1317,7 +1317,7 @@ mod tests { crate::init().unwrap(); let caps = Caps::builder("foo/bar").build(); - format!("{caps}"); + let _ = format!("{caps}"); } #[test] diff --git a/gstreamer/src/tags.rs b/gstreamer/src/tags.rs index 6a46c63b3..7805712be 100644 --- a/gstreamer/src/tags.rs +++ b/gstreamer/src/tags.rs @@ -1355,7 +1355,7 @@ mod tests { fn test_display() { crate::init().unwrap(); - format!("{}", TagList::new()); + let _ = format!("{}", TagList::new()); } #[test] diff --git a/gstreamer/src/utils.rs b/gstreamer/src/utils.rs index bd77358b1..f929c25c2 100644 --- a/gstreamer/src/utils.rs +++ b/gstreamer/src/utils.rs @@ -18,7 +18,7 @@ pub struct ObjectLockGuard<'a, T: ?Sized> { impl<'a, T> ObjectLockGuard<'a, T> where - T: IsA + ?Sized, + T: IsA, { #[inline] pub fn acquire(obj: &'a T) -> ObjectLockGuard<'a, T> {