From 60ffbe36dd259b31ce8a9abf572e66697c9b3888 Mon Sep 17 00:00:00 2001 From: yankun <1939810907@qq.com> Date: Fri, 17 Feb 2023 14:03:31 +0800 Subject: [PATCH] fix: upgrade version to 0.5.3 & fix rust unittest. --- Cargo.toml | 2 +- fastbloom-rs/Cargo.toml | 2 +- fastbloom-rs/src/builder.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e8d3996..1768254 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fastbloom_rs" -version = "0.5.2" +version = "0.5.3" edition = "2021" authors = ["Yan Kun "] description = "Some fast bloom filter implemented by Rust for Python and Rust! 10x faster than pybloom!" diff --git a/fastbloom-rs/Cargo.toml b/fastbloom-rs/Cargo.toml index 63702da..7d4b70e 100644 --- a/fastbloom-rs/Cargo.toml +++ b/fastbloom-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fastbloom-rs" -version = "0.5.2" +version = "0.5.3" edition = "2021" authors = ["Yan Kun "] description = "Some fast bloom filter implemented by Rust for Python and Rust!" diff --git a/fastbloom-rs/src/builder.rs b/fastbloom-rs/src/builder.rs index 7530548..9b9fc75 100644 --- a/fastbloom-rs/src/builder.rs +++ b/fastbloom-rs/src/builder.rs @@ -196,7 +196,7 @@ fn optimal_test() { let n = optimal_n(k, m); let p = optimal_p(k, m, n); println!("{m} {k} {n} {p}"); - assert_eq!(m, 962710784); + assert_eq!(m, 958505856); assert_eq!(k, 7) }