Skip to content

Commit a2a411f

Browse files
committed
Clippy fixes for Rust 1.76
1 parent a2ef196 commit a2a411f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/iir_filter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const MAX_IIR_COEFFS_LEN: usize = 20;
2424
///
2525
#[track_caller]
2626
#[inline(always)]
27-
fn assert_valid_feedforward_coefs(coefs: &Vec<f64>) {
27+
fn assert_valid_feedforward_coefs(coefs: &[f64]) {
2828
assert!(
2929
!coefs.is_empty() && coefs.len() <= MAX_IIR_COEFFS_LEN,
3030
"NotSupportedError - IIR Filter feedforward coefficients should have length >= 0 and <= {}",
@@ -48,7 +48,7 @@ fn assert_valid_feedforward_coefs(coefs: &Vec<f64>) {
4848
///
4949
#[track_caller]
5050
#[inline(always)]
51-
fn assert_valid_feedback_coefs(coefs: &Vec<f64>) {
51+
fn assert_valid_feedback_coefs(coefs: &[f64]) {
5252
assert!(
5353
!coefs.is_empty() && coefs.len() <= MAX_IIR_COEFFS_LEN,
5454
"NotSupportedError - IIR Filter feedback coefficients should have length >= 0 and <= {}",

0 commit comments

Comments
 (0)