Skip to content

Commit 1ccce6e

Browse files
committed
feat: rename calced_crc to calced_crc_bytes
1 parent 93973ac commit 1ccce6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/gz/bufread.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ impl<R: BufRead> GzEncoder<R> {
8282
return Ok(0);
8383
}
8484
let crc = self.inner.get_ref().crc();
85-
let calced_crc = crc.sum().to_le_bytes();
85+
let calced_crc_bytes = crc.sum().to_le_bytes();
8686
let arr = [
87-
calced_crc[0],
88-
calced_crc[1],
89-
calced_crc[2],
90-
calced_crc[3],
87+
calced_crc_bytes[0],
88+
calced_crc_bytes[1],
89+
calced_crc_bytes[2],
90+
calced_crc_bytes[3],
9191
(crc.amount() >> 0) as u8,
9292
(crc.amount() >> 8) as u8,
9393
(crc.amount() >> 16) as u8,

0 commit comments

Comments
 (0)