From: Kostya Shishkov Date: Thu, 15 Jun 2017 12:25:22 +0000 (+0200) Subject: bitreader: drop unneeded mut X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=dfc5d6440b20542654eecba5260522a84e91322b;p=nihav.git bitreader: drop unneeded mut --- 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); }