flier / rust-fasthash

A suite of non-cryptographic hash functions for Rust.
Apache License 2.0
138 stars 28 forks source link

cargo bench error #22

Open httaotao opened 2 years ago

httaotao commented 2 years ago

when I run cargo bench --bench hash, it shows

error[E0425]: cannot find function `hash_with_seed` in module `ahash`
   --> fasthash/benches/hash.rs:123:26
    |
123 |         b.iter(|| ahash::hash_with_seed(&DATA[..size], (SEED as u64, SEED as u64, SEED as u64, SEED as u64)))
    |                          ^^^^^^^^^^^^^^ help: a function with a similar name exists: `hash64_with_seed`
    |
   ::: /root/rust-fasthash/fasthash/src/ahash.rs:71:1
    |
71  | pub fn hash64_with_seed<T: AsRef<[u8]>>(v: T, seeds: (u128, u128)) -> u64 {
    | ------------------------------------------------------------------------- similarly named function `hash64_with_seed` defined here