build(deps): bump rand from 0.8.5 to 0.9.0 #1278
Annotations
10 errors
Run just check-crate linkerd-distribute:
linkerd/distribute/src/keys.rs#L3
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/keys.rs:3:5
|
3 | distributions::{WeightedError, WeightedIndex},
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/params.rs#L6
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/params.rs:6:11
|
6 | use rand::distributions::WeightedError;
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/service/random.rs#L4
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/service/random.rs:4:12
|
4 | use rand::{distributions::WeightedError, rngs::SmallRng, SeedableRng};
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/keys.rs#L3
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/keys.rs:3:5
|
3 | distributions::{WeightedError, WeightedIndex},
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/params.rs#L6
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/params.rs:6:11
|
6 | use rand::distributions::WeightedError;
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/service/random.rs#L4
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/service/random.rs:4:12
|
4 | use rand::{distributions::WeightedError, rngs::SmallRng, SeedableRng};
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/service/random.rs#L24
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/distribute/src/service/random.rs:24:30
|
24 | SmallRng::from_rng(rand::thread_rng()).expect("RNG must initialize")
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/service/random.rs#L24
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/distribute/src/service/random.rs:24:30
|
24 | SmallRng::from_rng(rand::thread_rng()).expect("RNG must initialize")
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/service/random.rs#L24
error[E0308]: mismatched types
--> linkerd/distribute/src/service/random.rs:24:24
|
24 | SmallRng::from_rng(rand::thread_rng()).expect("RNG must initialize")
| ------------------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `ThreadRng`
| |
| arguments to this function are incorrect
|
= note: expected mutable reference `&mut _`
found struct `ThreadRng`
note: associated function defined here
--> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.9.0/src/lib.rs:460:8
|
460 | fn from_rng(rng: &mut impl RngCore) -> Self {
| ^^^^^^^^
help: consider mutably borrowing here
|
24 | SmallRng::from_rng(&mut rand::thread_rng()).expect("RNG must initialize")
| ++++
|
Run just check-crate linkerd-distribute:
linkerd/distribute/src/service/random.rs#L24
error[E0308]: mismatched types
--> linkerd/distribute/src/service/random.rs:24:24
|
24 | SmallRng::from_rng(rand::thread_rng()).expect("RNG must initialize")
| ------------------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `ThreadRng`
| |
| arguments to this function are incorrect
|
= note: expected mutable reference `&mut _`
found struct `ThreadRng`
note: associated function defined here
--> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.9.0/src/lib.rs:460:8
|
460 | fn from_rng(rng: &mut impl RngCore) -> Self {
| ^^^^^^^^
help: consider mutably borrowing here
|
24 | SmallRng::from_rng(&mut rand::thread_rng()).expect("RNG must initialize")
| ++++
|
Loading