Skip to content

Commit

Permalink
build!: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
xdefago committed Dec 12, 2024
1 parent 647abb1 commit b130c0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ harness = false


[dependencies]
statrs = "0.17.0"
statrs = "0.18.0"
num-traits = "0.2.15"

thiserror = "1.0.30"
thiserror = "2.0.6"
lazy_static = "1.4.0"

arrayvec = { version = "0.7.4", default-features = false }
Expand Down
7 changes: 4 additions & 3 deletions examples/proportions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ fn main() {
println!();

// generate data
let sample = (0..sample_size)
.map(|_| distrib.sample(&mut rng) as i64)
.collect::<Vec<_>>();
let sample = distrib
.sample_iter(&mut rng)
.take(sample_size)
.collect::<Vec<i64>>();

// show the data
if SAMPLE_SIZE < 100 {
Expand Down

0 comments on commit b130c0c

Please sign in to comment.