style: Remove use of fnv in bloom.rs.

To support that, this patch also does the following.

- Removes the insert(), remove() and might_contain() methods, because they are
  specialized versions of insert_hash(), remove_hash(), and
  might_contain_hash(), and they are only used by tests within this file.

- Moves hash() from the top level into create_and_insert_some_stuff().

- Changes create_and_insert_some_stuff() so that instead of hashing consecutive
  integers, it instead hashes stringified consecutive integers, which matches
  real usage a little better.

- Raises the false_positives limit a little to account for the above changes.

Bug: 1484096
Reviewed-by: heycam
This commit is contained in:
Nicholas Nethercote 2018-08-17 15:33:22 +10:00 committed by Emilio Cobos Álvarez
parent d63ce552f7
commit 07ffc0955f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 24 additions and 43 deletions

View file

@ -24,7 +24,6 @@ bitflags = "1.0"
matches = "0.1"
cssparser = "0.24.0"
log = "0.4"
fnv = "1.0"
fxhash = "0.2"
phf = "0.7.18"
precomputed-hash = "0.1"