diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-11-01 11:27:48 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-11-01 11:27:48 +0300 |
commit | a8250abbf1eeff3ee277d93f166c3fd4983d7af3 (patch) | |
tree | c72fb58c6477081417a0685b9dac19ff48b8f6c9 /tutorial | |
parent | 31d4ba2eaee98cb09eaf1b6c4ab29698018ff4e7 (diff) |
Fix various new clippy warnings
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/src/rgb2gray/imp.rs | 4 | ||||
-rw-r--r-- | tutorial/src/sinesrc/imp.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tutorial/src/rgb2gray/imp.rs b/tutorial/src/rgb2gray/imp.rs index 37e2ad5fc..5ba14554c 100644 --- a/tutorial/src/rgb2gray/imp.rs +++ b/tutorial/src/rgb2gray/imp.rs @@ -261,7 +261,7 @@ impl BaseTransformImpl for Rgb2Gray { let mut caps = caps.clone(); for s in caps.make_mut().iter_mut() { - s.set("format", &gst_video::VideoFormat::Bgrx.to_str()); + s.set("format", gst_video::VideoFormat::Bgrx.to_str()); } caps @@ -277,7 +277,7 @@ impl BaseTransformImpl for Rgb2Gray { for s in caps.iter() { let mut s_gray = s.to_owned(); - s_gray.set("format", &gst_video::VideoFormat::Gray8.to_str()); + s_gray.set("format", gst_video::VideoFormat::Gray8.to_str()); gray_caps.append_structure(s_gray); } gray_caps.append(caps.clone()); diff --git a/tutorial/src/sinesrc/imp.rs b/tutorial/src/sinesrc/imp.rs index 42be86d26..243646804 100644 --- a/tutorial/src/sinesrc/imp.rs +++ b/tutorial/src/sinesrc/imp.rs @@ -404,7 +404,7 @@ impl BaseSrcImpl for SineSrc { gst::debug!(CAT, imp: self, "Configuring for caps {}", caps); self.obj() - .set_blocksize(info.bpf() * (*self.settings.lock().unwrap()).samples_per_buffer); + .set_blocksize(info.bpf() * (self.settings.lock().unwrap()).samples_per_buffer); let settings = *self.settings.lock().unwrap(); let mut state = self.state.lock().unwrap(); |