File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const MAX_IIR_COEFFS_LEN: usize = 20;
24
24
///
25
25
#[ track_caller]
26
26
#[ inline( always) ]
27
- fn assert_valid_feedforward_coefs ( coefs : & Vec < f64 > ) {
27
+ fn assert_valid_feedforward_coefs ( coefs : & [ f64 ] ) {
28
28
assert ! (
29
29
!coefs. is_empty( ) && coefs. len( ) <= MAX_IIR_COEFFS_LEN ,
30
30
"NotSupportedError - IIR Filter feedforward coefficients should have length >= 0 and <= {}" ,
@@ -48,7 +48,7 @@ fn assert_valid_feedforward_coefs(coefs: &Vec<f64>) {
48
48
///
49
49
#[ track_caller]
50
50
#[ inline( always) ]
51
- fn assert_valid_feedback_coefs ( coefs : & Vec < f64 > ) {
51
+ fn assert_valid_feedback_coefs ( coefs : & [ f64 ] ) {
52
52
assert ! (
53
53
!coefs. is_empty( ) && coefs. len( ) <= MAX_IIR_COEFFS_LEN ,
54
54
"NotSupportedError - IIR Filter feedback coefficients should have length >= 0 and <= {}" ,
You can’t perform that action at this time.
0 commit comments