Fix some clippy warnings

This commit is contained in:
Sebastian Dröge 2020-02-25 10:12:55 +02:00
parent d58cdc41b7
commit 4dac77bb93
3 changed files with 4 additions and 7 deletions

View file

@ -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")
}

View file

@ -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);
}

View file

@ -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);
}