Closed ashtul closed 5 months ago
I was able to fix it with
let filter: ScalableCuckooFilter<&str> = ScalableCuckooFilterBuilder::new()
but wondered if there is another way?
You need to provide type annotations for the ScalableCuckooFilter
as specified by the compiler message.
The following code is an example:
let mut filter: ScalableCuckooFilter<&str, _, _> = ScalableCuckooFilterBuilder::new()
.initial_capacity(params.capacity as usize)
.false_positive_probability(params.err)
.entries_per_bucket(params.bucket_size as usize)
.max_kicks(params.max_iterations as usize)
.finish();
Hi @sile, I am trying to implement the crate into a project. Using the following code -
an error is reported by the compiler -
How can this be fixed?