Skip to content

Commit

Permalink
Remove clippy feature, reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Nov 5, 2018
1 parent aa7c068 commit 3cd2c35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Expand Up @@ -12,7 +12,6 @@ name = "bloomfilter"
path = "src/bloomfilter/lib.rs"

[dependencies]
clippy = {version = "~0", optional = true}
bit-vec = "~0.4"
rand = "~0.3"
siphasher = "^0.2.2"
23 changes: 11 additions & 12 deletions src/bloomfilter/lib.rs
Expand Up @@ -6,13 +6,10 @@
//! 2 hash functions, generated with SipHash-1-3 using randomized keys.
//!

#![crate_name="bloomfilter"]
#![crate_name = "bloomfilter"]
#![crate_type = "rlib"]
#![warn(non_camel_case_types, non_upper_case_globals, unused_qualifications)]

#![cfg_attr(feature="clippy", feature(plugin))]
#![cfg_attr(feature="clippy", plugin(clippy))]

extern crate bit_vec;
extern crate rand;
extern crate siphasher;
Expand Down Expand Up @@ -48,10 +45,10 @@ impl<T> Bloom<T> {
let bitmap = BitVec::from_elem(bitmap_bits as usize, false);
let sips = [Self::sip_new(), Self::sip_new()];
Self {
bitmap: bitmap,
bitmap_bits: bitmap_bits,
k_num: k_num,
sips: sips,
bitmap,
bitmap_bits,
k_num,
sips,
_phantom: PhantomData,
}
}
Expand Down Expand Up @@ -229,9 +226,11 @@ fn bloom_test_load() {
original.set(&key);
assert!(original.check(&key) == true);

let cloned = Bloom::from_existing(&original.bitmap(),
original.number_of_bits(),
original.number_of_hash_functions(),
original.sip_keys());
let cloned = Bloom::from_existing(
&original.bitmap(),
original.number_of_bits(),
original.number_of_hash_functions(),
original.sip_keys(),
);
assert!(cloned.check(&key) == true);
}

0 comments on commit 3cd2c35

Please sign in to comment.