Skip to content

Commit 9652eba

Browse files
chore(deps): update statrs requirement from 0.17.1 to 0.18.0 (#187)
* chore(deps): update statrs requirement from 0.17.1 to 0.18.0 Updates the requirements on [statrs](https://github.com/statrs-dev/statrs) to permit the latest version. - [Release notes](https://github.com/statrs-dev/statrs/releases) - [Changelog](https://github.com/statrs-dev/statrs/blob/master/CHANGELOG.md) - [Commits](statrs-dev/statrs@v0.17.1...v0.17.1) --- updated-dependencies: - dependency-name: statrs dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Specify type parameter when sampling from statrs distribution --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ben Sully <[email protected]>
1 parent 9ed05a4 commit 9652eba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ num-traits = "0.2.19"
5454
rand = "0.8.5"
5555
roots = "0.0.8"
5656
serde = { version = "1.0.166", features = ["derive"] }
57-
statrs = "0.17.1"
57+
statrs = "0.18.0"
5858
serde_json = "1.0.128"
5959
serde-wasm-bindgen = "0.6.0"
6060
thiserror = "2.0.3"

crates/augurs-prophet/src/prophet/predict.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ impl<O> Prophet<O> {
504504
let lambda = n_cp as f64 * (t_max - 1.0);
505505
// Lambda should always be positive, so this should never fail.
506506
let dist = Poisson::new(lambda).expect("Valid Poisson distribution");
507-
rng.sample(dist).round() as usize
507+
rng.sample::<f64, _>(dist).round() as usize
508508
} else {
509509
0
510510
};

0 commit comments

Comments
 (0)