Skip to content

Commit 8d99c52

Browse files
brianpanefolkertdev
authored andcommitted
Relocate hash_calc_variant to an unused space in State struct
1 parent 84b0fd2 commit 8d99c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zlib-rs/src/deflate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,8 @@ pub(crate) struct State<'a> {
12361236
/// is an active block and it is the last block.
12371237
pub(crate) block_open: u8,
12381238

1239+
pub(crate) hash_calc_variant: HashCalcVariant,
1240+
12391241
bit_writer: BitWriter<'a>,
12401242

12411243
/// Use a faster search when the previous match is longer than this
@@ -1340,8 +1342,6 @@ pub(crate) struct State<'a> {
13401342
/// hash index of string to be inserted
13411343
pub(crate) ins_h: usize,
13421344

1343-
pub(crate) hash_calc_variant: HashCalcVariant,
1344-
13451345
crc_fold: crate::crc32::Crc32Fold,
13461346
gzhead: Option<&'a mut gz_header>,
13471347
gzindex: usize,

0 commit comments

Comments
 (0)