Skip to content

Commit c0f4462

Browse files
authored
Merge pull request #51 from rust-vsock/dependabot/cargo/rand-0.9.0
Update rand requirement from 0.8.5 to 0.9.0
2 parents 5c47132 + 8a03a26 commit c0f4462

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ libc = "0.2.158"
1515
nix = { version = "0.29.0", features = ["ioctl", "socket"] }
1616

1717
[dev-dependencies]
18-
rand = "0.8.5"
18+
rand = "0.9.0"
1919
sha2 = "0.10.8"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub struct Incoming<'a> {
5959
listener: &'a VsockListener,
6060
}
6161

62-
impl<'a> Iterator for Incoming<'a> {
62+
impl Iterator for Incoming<'_> {
6363
type Item = Result<VsockStream>;
6464

6565
fn next(&mut self) -> Option<Result<VsockStream>> {

tests/vsock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const LISTEN_PORT: u32 = 9000;
3434
/// semantics.
3535
#[test]
3636
fn test_vsock() {
37-
let mut rng = rand::thread_rng();
37+
let mut rng = rand::rng();
3838
let mut blob: Vec<u8> = vec![];
3939
let mut rx_blob = vec![];
4040
let mut tx_pos = 0;

0 commit comments

Comments
 (0)