mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +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() {
|
fn test_display() {
|
||||||
gst::init().unwrap();
|
gst::init().unwrap();
|
||||||
|
|
||||||
format!("{}", "sRGB".parse::<crate::VideoColorimetry>().unwrap());
|
let _ = format!("{}", "sRGB".parse::<crate::VideoColorimetry>().unwrap());
|
||||||
format!("{}", crate::VideoFieldOrder::TopFieldFirst);
|
let _ = format!("{}", crate::VideoFieldOrder::TopFieldFirst);
|
||||||
format!("{}", crate::VideoInterlaceMode::Progressive);
|
let _ = format!("{}", crate::VideoInterlaceMode::Progressive);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1317,7 +1317,7 @@ mod tests {
|
||||||
crate::init().unwrap();
|
crate::init().unwrap();
|
||||||
|
|
||||||
let caps = Caps::builder("foo/bar").build();
|
let caps = Caps::builder("foo/bar").build();
|
||||||
format!("{caps}");
|
let _ = format!("{caps}");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -1355,7 +1355,7 @@ mod tests {
|
||||||
fn test_display() {
|
fn test_display() {
|
||||||
crate::init().unwrap();
|
crate::init().unwrap();
|
||||||
|
|
||||||
format!("{}", TagList::new());
|
let _ = format!("{}", TagList::new());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -18,7 +18,7 @@ pub struct ObjectLockGuard<'a, T: ?Sized> {
|
||||||
|
|
||||||
impl<'a, T> ObjectLockGuard<'a, T>
|
impl<'a, T> ObjectLockGuard<'a, T>
|
||||||
where
|
where
|
||||||
T: IsA<crate::Object> + ?Sized,
|
T: IsA<crate::Object>,
|
||||||
{
|
{
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn acquire(obj: &'a T) -> ObjectLockGuard<'a, T> {
|
pub fn acquire(obj: &'a T) -> ObjectLockGuard<'a, T> {
|
||||||
|
|
Loading…
Reference in a new issue