Skip to content

Commit b1d8203

Browse files
committed
cleaning
1 parent 3cc5c38 commit b1d8203

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node/biquad_filter.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,7 @@ impl BiquadFilterNode {
517517
// 1 + (a1 + a2*z1)*z1
518518
//
519519
// with z1 = 1/z and z = exp(j*pi*frequency). Hence z1 = exp(-j*pi*frequency)
520-
for (i, freq) in frequency_hz.iter().enumerate() {
521-
let freq = *freq;
520+
for (i, &freq) in frequency_hz.iter().enumerate() {
522521
// <https://webaudio.github.io/web-audio-api/#dom-biquadfilternode-getfrequencyresponse>
523522
// > If a value in the frequencyHz parameter is not within [0, sampleRate/2],
524523
// > where sampleRate is the value of the sampleRate property of the AudioContext,

0 commit comments

Comments
 (0)