summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2017-07-22 08:18:30 +0200
committerJustin Worthe <justin@worthe-it.co.za>2017-07-22 08:18:30 +0200
commitafb0bed8500b4bc00eace944f82dc9f15acc884b (patch)
tree2c86da91d25bc20c8f820dd709bcb1a69c2ff158 /src
parentd2ec267baf0a419ac79c296a0240885f8158c5dd (diff)
Fixed incorrect type inferrence to a vector rather than a slice
Diffstat (limited to 'src')
-rw-r--r--src/transforms.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transforms.rs b/src/transforms.rs
index 07b3cce..6bba819 100644
--- a/src/transforms.rs
+++ b/src/transforms.rs
@@ -148,7 +148,7 @@ mod tests {
let samples2a = sample_sinusoud(1.0, 880.0, 0.0);
let expected_fundamental = 440.0;
- let samples = samples1a.iter().zip(samples2a.iter())
+ let samples: Vec<f32> = samples1a.iter().zip(samples2a.iter())
.map(|(a, b)| a+b)
.collect();