소스 검색

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