From dfc5d6440b20542654eecba5260522a84e91322b Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 15 Jun 2017 14:25:22 +0200 Subject: [PATCH] bitreader: drop unneeded mut --- src/io/bitreader.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/io/bitreader.rs b/src/io/bitreader.rs index 20753d1..8851926 100644 --- a/src/io/bitreader.rs +++ b/src/io/bitreader.rs @@ -51,10 +51,10 @@ impl<'a> BitReader<'a> { } fn fill32le16(&mut self, src: &[u8]) { - let mut nw = (((src[1] as u32) << 24) | - ((src[0] as u32) << 16) | - ((src[3] as u32) << 8) | - ((src[2] as u32) << 0)) as u64; + let nw = (((src[1] as u32) << 24) | + ((src[0] as u32) << 16) | + ((src[3] as u32) << 8) | + ((src[2] as u32) << 0)) as u64; self.cache |= nw << (32 - self.bits); } -- 2.39.5