From 6a0657fec6f887fda8276e5c70317dec887b90dd Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Wed, 22 Feb 2017 15:32:18 +0000 Subject: [PATCH] Fix compiling error --- src/connection/codec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection/codec.rs b/src/connection/codec.rs index 2f657ae..6529d3d 100644 --- a/src/connection/codec.rs +++ b/src/connection/codec.rs @@ -51,7 +51,7 @@ impl Codec for APCodec { self.encode_cipher.encrypt(&mut buf[offset..]); - let mac = [0u8; MAC_SIZE]; + let mut mac = [0u8; MAC_SIZE]; self.encode_cipher.finish(&mut mac); buf.extend_from_slice(&mac);