From 68d78ff411cf5af1a3985dffed97dcc822f7c8fa Mon Sep 17 00:00:00 2001 From: Mollusk Date: Fri, 5 Jun 2026 22:00:02 -0400 Subject: [PATCH] chore(test): drop useless vec! in recorder wav test Co-Authored-By: Claude Opus 4.8 --- src/audio/recorder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();