Skip to content

fix(deps): update rust crate rand to v0.9.2 #102

fix(deps): update rust crate rand to v0.9.2

fix(deps): update rust crate rand to v0.9.2 #102

GitHub Actions / clippy failed Aug 4, 2025 in 0s

clippy

10 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 10
Warning 0
Note 0
Help 0

Versions

  • rustc 1.88.0 (6b00bc388 2025-06-23)
  • cargo 1.88.0 (873a06493 2025-05-10)
  • clippy 0.1.88 (6b00bc3880 2025-06-23)

Annotations

Check failure on line 248 in src/dleq.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `rand_chacha::ChaCha20Rng: rand::SeedableRng` is not satisfied

error[E0277]: the trait bound `rand_chacha::ChaCha20Rng: rand::SeedableRng` is not satisfied
   --> src/dleq.rs:248:58
    |
248 |         let mut prng: ChaChaRng = SeedableRng::from_seed(seed);
    |                                                          ^^^^ the trait `rand::SeedableRng` is not implemented for `rand_chacha::ChaCha20Rng`
    |
note: there are multiple different versions of crate `rand_core` in the dependency graph
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.3/src/lib.rs:371:1
    |
371 |   pub trait SeedableRng: Sized {
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait
    |
   ::: src/oprf.rs:3:5
    |
3   |   use curve25519_dalek::constants;
    |       ---------------- one version of crate `rand_core` used here, as a dependency of crate `curve25519_dalek`
...
10  |   use rand::{CryptoRng, Rng};
    |       ---- one version of crate `rand_core` used here, as a dependency of crate `rand`
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_chacha-0.3.1/src/chacha.rs:343:1
    |
343 |   chacha_impl!(ChaCha20Core, ChaCha20Rng, 10, "ChaCha with 20 rounds", abstract20);
    |   -------------------------------------------------------------------------------- this type doesn't implement the required trait
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.6.4/src/block.rs:68:1
    |
68  |   pub trait BlockRngCore {
    |   ---------------------- this is the found trait
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_chacha-0.9.0/src/chacha.rs:332:1
    |
332 | / chacha_impl!(
333 | |     ChaCha20Core,
334 | |     ChaCha20Rng,
335 | |     10,
336 | |     "ChaCha with 20 rounds",
337 | |     abstract20,
338 | | );
    | |_- this type implements the required trait
    = note: two types coming from two different versions of the same crate are different types even if they look the same
    = help: you can use `cargo tree` to explore your dependency tree

Check failure on line 248 in src/dleq.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `rand_chacha::ChaCha20Rng: rand::SeedableRng` is not satisfied

error[E0277]: the trait bound `rand_chacha::ChaCha20Rng: rand::SeedableRng` is not satisfied
   --> src/dleq.rs:248:35
    |
248 |         let mut prng: ChaChaRng = SeedableRng::from_seed(seed);
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rand::SeedableRng` is not implemented for `rand_chacha::ChaCha20Rng`
    |
note: there are multiple different versions of crate `rand_core` in the dependency graph
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.3/src/lib.rs:371:1
    |
371 |   pub trait SeedableRng: Sized {
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait
    |
   ::: src/oprf.rs:3:5
    |
3   |   use curve25519_dalek::constants;
    |       ---------------- one version of crate `rand_core` used here, as a dependency of crate `curve25519_dalek`
...
10  |   use rand::{CryptoRng, Rng};
    |       ---- one version of crate `rand_core` used here, as a dependency of crate `rand`
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_chacha-0.3.1/src/chacha.rs:343:1
    |
343 |   chacha_impl!(ChaCha20Core, ChaCha20Rng, 10, "ChaCha with 20 rounds", abstract20);
    |   -------------------------------------------------------------------------------- this type doesn't implement the required trait
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.6.4/src/block.rs:68:1
    |
68  |   pub trait BlockRngCore {
    |   ---------------------- this is the found trait
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_chacha-0.9.0/src/chacha.rs:332:1
    |
332 | / chacha_impl!(
333 | |     ChaCha20Core,
334 | |     ChaCha20Rng,
335 | |     10,
336 | |     "ChaCha with 20 rounds",
337 | |     abstract20,
338 | | );
    | |_- this type implements the required trait
    = note: two types coming from two different versions of the same crate are different types even if they look the same
    = help: you can use `cargo tree` to explore your dependency tree

Check failure on line 50 in src/dleq.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied

error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
   --> src/dleq.rs:50:32
    |
50  |         let t = Scalar::random(rng);
    |                 -------------- ^^^ the trait `rand_chacha::rand_core::RngCore` is not implemented for `T`
    |                 |
    |                 required by a bound introduced by this call
    |
    = note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
    |
597 |     pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
    |                      ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting type parameter `T` with trait `RngCore`
    |
48  |         T: Rng + CryptoRng + rand_chacha::rand_core::RngCore,
    |                            +++++++++++++++++++++++++++++++++

Check failure on line 50 in src/dleq.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied

error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
   --> src/dleq.rs:50:32
    |
50  |         let t = Scalar::random(rng);
    |                 -------------- ^^^ the trait `rand_chacha::rand_core::CryptoRng` is not implemented for `T`
    |                 |
    |                 required by a bound introduced by this call
    |
    = note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
    |
597 |     pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
    |                      ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting type parameter `T` with trait `CryptoRng`
    |
48  |         T: Rng + CryptoRng + rand_chacha::rand_core::CryptoRng,
    |                            +++++++++++++++++++++++++++++++++++

Check failure on line 321 in src/oprf.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied

error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
   --> src/oprf.rs:321:32
    |
321 |         let k = Scalar::random(rng);
    |                 -------------- ^^^ the trait `rand_chacha::rand_core::RngCore` is not implemented for `T`
    |                 |
    |                 required by a bound introduced by this call
    |
    = note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
    |
597 |     pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
    |                      ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting type parameter `T` with trait `RngCore`
    |
320 |     pub fn random<T: Rng + CryptoRng + rand_chacha::rand_core::RngCore>(rng: &mut T) -> Self {
    |                                      +++++++++++++++++++++++++++++++++

Check failure on line 321 in src/oprf.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied

error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
   --> src/oprf.rs:321:32
    |
321 |         let k = Scalar::random(rng);
    |                 -------------- ^^^ the trait `rand_chacha::rand_core::CryptoRng` is not implemented for `T`
    |                 |
    |                 required by a bound introduced by this call
    |
    = note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
    |
597 |     pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
    |                      ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting type parameter `T` with trait `CryptoRng`
    |
320 |     pub fn random<T: Rng + CryptoRng + rand_chacha::rand_core::CryptoRng>(rng: &mut T) -> Self {
    |                                      +++++++++++++++++++++++++++++++++++

Check failure on line 151 in src/oprf.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied

error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
   --> src/oprf.rs:151:46
    |
151 |         let blinding_scalar = Scalar::random(rng);
    |                               -------------- ^^^ the trait `rand_chacha::rand_core::RngCore` is not implemented for `T`
    |                               |
    |                               required by a bound introduced by this call
    |
    = note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
    |
597 |     pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
    |                      ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting type parameter `T` with trait `RngCore`
    |
149 |         T: Rng + CryptoRng + rand_chacha::rand_core::RngCore,
    |                            +++++++++++++++++++++++++++++++++

Check failure on line 151 in src/oprf.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied

error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
   --> src/oprf.rs:151:46
    |
151 |         let blinding_scalar = Scalar::random(rng);
    |                               -------------- ^^^ the trait `rand_chacha::rand_core::CryptoRng` is not implemented for `T`
    |                               |
    |                               required by a bound introduced by this call
    |
    = note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
    |
597 |     pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
    |                      ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting type parameter `T` with trait `CryptoRng`
    |
149 |         T: Rng + CryptoRng + rand_chacha::rand_core::CryptoRng,
    |                            +++++++++++++++++++++++++++++++++++

Check failure on line 125 in src/oprf.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied

error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
   --> src/oprf.rs:125:46
    |
125 |         let blinding_scalar = Scalar::random(rng);
    |                               -------------- ^^^ the trait `rand_chacha::rand_core::RngCore` is not implemented for `T`
    |                               |
    |                               required by a bound introduced by this call
    |
    = note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
    |
597 |     pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
    |                      ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting type parameter `T` with trait `RngCore`
    |
121 |         T: Rng + CryptoRng + rand_chacha::rand_core::RngCore,
    |                            +++++++++++++++++++++++++++++++++

Check failure on line 125 in src/oprf.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied

error[E0277]: the trait bound `T: rand_chacha::rand_core::CryptoRngCore` is not satisfied
   --> src/oprf.rs:125:46
    |
125 |         let blinding_scalar = Scalar::random(rng);
    |                               -------------- ^^^ the trait `rand_chacha::rand_core::CryptoRng` is not implemented for `T`
    |                               |
    |                               required by a bound introduced by this call
    |
    = note: required for `T` to implement `rand_chacha::rand_core::CryptoRngCore`
note: required by a bound in `curve25519_dalek::Scalar::random`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/src/scalar.rs:597:22
    |
597 |     pub fn random<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self {
    |                      ^^^^^^^^^^^^^ required by this bound in `Scalar::random`
help: consider further restricting type parameter `T` with trait `CryptoRng`
    |
121 |         T: Rng + CryptoRng + rand_chacha::rand_core::CryptoRng,
    |                            +++++++++++++++++++++++++++++++++++