From 44aa0598cbfc5d0f8b4dbff614f5999c942f9767 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Fri, 22 Jul 2022 10:51:51 +0300 Subject: Formatting cleanup --- c2enc/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c2enc/src/main.rs b/c2enc/src/main.rs index 2881db5..ec57ed5 100644 --- a/c2enc/src/main.rs +++ b/c2enc/src/main.rs @@ -24,9 +24,9 @@ fn main() { let nsam = c.samples_per_frame(); let _nbits = c.bytes_per_frame(); - for speech in speech.chunks(nsam) { - let mut bits: [u8; 7] = [0,0,0,0,0,0,0]; // nbits assume 7 - c.encode(&speech, &mut bits); + for samples in speech.chunks(nsam) { + let mut bits: [u8; 7] = [0, 0, 0, 0, 0, 0, 0]; // nbits assume 7 + c.encode(&samples, &mut bits); allbits.extend(bits); } -- cgit v1.3.1