From c6a352b0c7d26724bbc15e35a248e2d1128d95b4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 08:24:17 +0000 Subject: [PATCH] Update rand requirement from 0.8 to 0.9 Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/0.8.0...0.9.0) --- updated-dependencies: - dependency-name: rand dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- src/read.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6c2d34db..f09f8ab9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ features = ["rust-allocator"] optional = true [dev-dependencies] -rand = "0.8" +rand = "0.9" partial-io = { version = "0.5.4", features = ["quickcheck1"] } quickcheck = "1.0" diff --git a/src/read.rs b/src/read.rs index b2956f69..55d01f5c 100644 --- a/src/read.rs +++ b/src/read.rs @@ -192,8 +192,8 @@ mod tests { use crate::Compression; use partial_io::quickcheck_types::{GenInterrupted, PartialWithErrors}; use partial_io::PartialRead; - use rand::distributions::Standard; - use rand::{thread_rng, Rng}; + use rand::distr::StandardUniform; + use rand::{rng, Rng}; use std::io::Read; #[test] @@ -236,8 +236,8 @@ mod tests { let mut result = Vec::new(); c.read_to_end(&mut result).unwrap(); - let v = thread_rng() - .sample_iter(&Standard) + let v = rng() + .sample_iter(&StandardUniform) .take(1024) .collect::>(); for _ in 0..200 {