瀏覽代碼

Fix compiling error

Paul Lietar 8 年之前
父節點
當前提交
6a0657fec6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/connection/codec.rs

+ 1 - 1
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);