chore(test): drop useless vec! in recorder wav test
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -192,7 +192,7 @@ mod tests {
|
|||||||
let path = dir.join(format!("peerspeak-test-{}.wav", std::process::id()));
|
let path = dir.join(format!("peerspeak-test-{}.wav", std::process::id()));
|
||||||
let mut w = WavWriter::new(&path).unwrap();
|
let mut w = WavWriter::new(&path).unwrap();
|
||||||
// 100 samples = 200 data bytes.
|
// 100 samples = 200 data bytes.
|
||||||
w.write_samples(&vec![1234i16; 100]).unwrap();
|
w.write_samples(&[1234i16; 100]).unwrap();
|
||||||
w.finalize().unwrap();
|
w.finalize().unwrap();
|
||||||
|
|
||||||
let bytes = std::fs::read(&path).unwrap();
|
let bytes = std::fs::read(&path).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user