build(deps): bump rand from 0.8.5 to 0.9.0 #1288
Annotations
10 errors
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L14
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/pool/p2c/src/lib.rs:14:28
|
14 | use rand::{rngs::SmallRng, thread_rng, Rng, SeedableRng};
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L79
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/pool/p2c/src/lib.rs:79:43
|
79 | let rng = SmallRng::from_rng(&mut thread_rng()).expect("RNG must be seeded");
| ^^^^^^^^^^
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L14
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/pool/p2c/src/lib.rs:14:28
|
14 | use rand::{rngs::SmallRng, thread_rng, Rng, SeedableRng};
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L79
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/pool/p2c/src/lib.rs:79:43
|
79 | let rng = SmallRng::from_rng(&mut thread_rng()).expect("RNG must be seeded");
| ^^^^^^^^^^
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L379
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/pool/p2c/src/lib.rs:379:52
|
379 | let mut rng = SmallRng::from_rng(rand::thread_rng()).expect("rng");
| ^^^^^^^^^^
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L79
error[E0599]: no method named `expect` found for struct `SmallRng` in the current scope
--> linkerd/pool/p2c/src/lib.rs:79:57
|
79 | let rng = SmallRng::from_rng(&mut thread_rng()).expect("RNG must be seeded");
| ^^^^^^ method not found in `SmallRng`
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L123
error: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
--> linkerd/pool/p2c/src/lib.rs:123:20
|
123 | let aidx = rng.gen_range(0..len);
| ^^^^^^^^^
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L124
error: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
--> linkerd/pool/p2c/src/lib.rs:124:24
|
124 | let mut bidx = rng.gen_range(0..(len - 1));
| ^^^^^^^^^
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L79
error[E0599]: no method named `expect` found for struct `rand::prelude::SmallRng` in the current scope
--> linkerd/pool/p2c/src/lib.rs:79:57
|
79 | let rng = SmallRng::from_rng(&mut thread_rng()).expect("RNG must be seeded");
| ^^^^^^ method not found in `SmallRng`
|
Run just check-crate linkerd-pool-p2c:
linkerd/pool/p2c/src/lib.rs#L123
error: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
--> linkerd/pool/p2c/src/lib.rs:123:20
|
123 | let aidx = rng.gen_range(0..len);
| ^^^^^^^^^
|
Loading