Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around borrow checking change in nightly-2018-01-11 #18

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "brotli"
version = "1.1.1"
version = "1.1.2"
authors = ["Daniel Reiter Horn <danielrh@dropbox.com>", "The Brotli Authors"]
description = "A brotli decompressor that with an interface avoiding the rust stdlib. This makes it suitable for embedded devices and kernels. It is designed with a pluggable allocator so that the standard lib's allocator may be employed. The default build also includes a stdlib allocator and stream interface. Disable this with --features=no-stdlib. All included code is safe."
license = "BSD-3-Clause/MIT"
Expand Down Expand Up @@ -29,4 +29,4 @@ no-stdlib = ["alloc-no-stdlib/no-stdlib", "brotli-decompressor/no-stdlib"]
external-literal-probability = []
disable-timer = ["brotli-decompressor/disable-timer"]
benchmark = ["brotli-decompressor/benchmark"]
vector_scratch_space = []
vector_scratch_space = []
4 changes: 2 additions & 2 deletions src/enc/backward_references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ impl<T: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> AnyHasher
out,
1i32);
}
let bucket_sweep = self.buckets_.BUCKET_SWEEP() as usize;
(*self).buckets_.slice_mut()[(key as (usize)).wrapping_add((cur_ix >> 3)
.wrapping_rem(self.buckets_.BUCKET_SWEEP() as
usize))] = cur_ix as (u32);
.wrapping_rem(bucket_sweep))] = cur_ix as (u32);
is_match_found != 0

}
Expand Down