mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 01:21:05 +00:00
Fix new 1.81 clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1551>
This commit is contained in:
parent
d6caf2d048
commit
bbbcda32e8
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