Skip to content

Commit 34d85ba

Browse files
committed
use local variable for bucket sweep rather than recomputing it. One day it may make sense as an associated constant with the trait, rather than a function call
1 parent 25fcb52 commit 34d85ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/enc/backward_references.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ impl<T: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> AnyHasher
336336
1i32);
337337
}
338338
(*self).buckets_.slice_mut()[(key as (usize)).wrapping_add((cur_ix >> 3)
339-
.wrapping_rem(self.buckets_.BUCKET_SWEEP() as
340-
usize))] = cur_ix as (u32);
339+
.wrapping_rem(BUCKET_SWEEP as usize))] = cur_ix as (u32);
341340
is_match_found != 0
342341

343342
}

0 commit comments

Comments
 (0)