mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 21:41:03 +00:00
Fix some clippy warnings
This commit is contained in:
parent
d58cdc41b7
commit
4dac77bb93
3 changed files with 4 additions and 7 deletions
|
@ -106,11 +106,8 @@ fn do_test(data: &'static [u8], packet_sizes: &[usize], decoded_samples: &[usize
|
|||
assert_eq!(buffer.get_size(), 4 * samples);
|
||||
}
|
||||
|
||||
let caps = h
|
||||
.get_sinkpad()
|
||||
h.get_sinkpad()
|
||||
.expect("harness has no sinkpad")
|
||||
.get_current_caps()
|
||||
.expect("pad has no caps");
|
||||
|
||||
caps
|
||||
.expect("pad has no caps")
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ fn main() {
|
|||
build.file(f);
|
||||
}
|
||||
|
||||
for p in includes.iter().flat_map(|i| i) {
|
||||
for p in includes.iter().flatten() {
|
||||
build.include(p);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ fn main() {
|
|||
|
||||
let mut build = cc::Build::new();
|
||||
|
||||
for p in includes.iter().flat_map(|i| i) {
|
||||
for p in includes.iter().flatten() {
|
||||
build.include(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue