From b37b081c43322e47b8725a435cffe61ac22a730a Mon Sep 17 00:00:00 2001 From: Orion Yeung <11580988+orionyeung001@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:02:54 -0500 Subject: [PATCH] chore: update nalgebra feature flag name also handle a clippy error in docstring --- Cargo.toml | 4 ++-- src/distribution/internal.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fb2cc4c6..ab92cb19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,11 +19,11 @@ path = "src/lib.rs" [dependencies] rand = "0.8" -nalgebra = { version = "0.32", default_features = false, features = ["rand", "std"] } +nalgebra = { version = "0.32", default-features = false, features = ["rand", "std"] } approx = "0.5.0" num-traits = "0.2.14" [dev-dependencies] criterion = "0.3.3" anyhow = "1.0" -nalgebra = { version = "0.32", default_features = false, features = ["macros"] } +nalgebra = { version = "0.32", default-features = false, features = ["macros"] } diff --git a/src/distribution/internal.rs b/src/distribution/internal.rs index 301d4a9e..15c24c10 100644 --- a/src/distribution/internal.rs +++ b/src/distribution/internal.rs @@ -21,6 +21,7 @@ pub fn is_valid_multinomial(arr: &[f64], incl_zero: bool) -> bool { /// Evaluates to `None` if /// - provided interval has lower bound greater than upper bound /// - function found not semi-monotone on the provided interval containing `z` +/// /// Evaluates to `Some(k)`, where `k` satisfies the search criteria pub fn integral_bisection_search( f: impl Fn(&K) -> T,