Fix/silence some clippy warnings

This commit is contained in:
Sebastian Dröge 2020-03-26 10:59:43 +02:00
parent 800d3435eb
commit bb6ec76951
2 changed files with 2 additions and 1 deletions

View file

@ -38,6 +38,7 @@ fn is_specialna(cc_data: u16) -> bool {
0x1130 == (0x7770 & cc_data)
}
#[allow(clippy::trivially_copy_pass_by_ref)]
fn eia608_from_utf8_1(c: &[u8; 5]) -> u16 {
assert!(c[4] == 0);
unsafe { ffi::eia608_from_utf8_1(c.as_ptr() as *const _, 0) }

View file

@ -322,7 +322,7 @@ fn csound_filter_caps_negotiation() {
// also passing the csd score to the filter element
let mut h = build_harness(
src_caps,
sink_caps.clone(),
sink_caps,
// creates a csd score that defines the input and output formats on the csound side
// the output fomart would be 1 channel audio samples at 44100
&CSD!(ksmps, ichannels, ochannels, "ain, ain2 ins", "out ain"),