diff --git a/src/audio/recorder.rs b/src/audio/recorder.rs index bde1cec..2734567 100644 --- a/src/audio/recorder.rs +++ b/src/audio/recorder.rs @@ -192,7 +192,7 @@ mod tests { let path = dir.join(format!("peerspeak-test-{}.wav", std::process::id())); let mut w = WavWriter::new(&path).unwrap(); // 100 samples = 200 data bytes. - w.write_samples(&vec![1234i16; 100]).unwrap(); + w.write_samples(&[1234i16; 100]).unwrap(); w.finalize().unwrap(); let bytes = std::fs::read(&path).unwrap();