Skip to content

Commit bed6682

Browse files
committed
Update dependencies
1 parent edfac5e commit bed6682

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ libc = "0.2.159"
5353
libc = "0.2.159"
5454

5555
[target.'cfg(windows)'.dependencies.windows-sys]
56-
version = "0.60"
56+
version = "0.61"
5757
features = [
5858
"Wdk_Foundation", # Required for AFD.
5959
"Wdk_Storage_FileSystem", # Required for AFD.
@@ -71,8 +71,8 @@ wasi = "0.11.0"
7171
libc = "0.2.159"
7272

7373
[dev-dependencies]
74-
env_logger = { version = "0.9.3", default-features = false }
75-
rand = "0.8"
74+
env_logger = { version = "0.11", default-features = false }
75+
rand = "0.9"
7676

7777
[package.metadata.docs.rs]
7878
all-features = true

tests/unix_listener.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,13 @@ fn unix_listener_deregister() {
144144
#[test]
145145
#[cfg(any(target_os = "android", target_os = "linux"))]
146146
fn unix_listener_abstract_namespace() {
147-
use rand::Rng;
148147
use std::os::linux::net::SocketAddrExt;
149148
use std::os::unix::net::SocketAddr;
150149

151150
let (mut poll, mut events) = init_with_poll();
152151
let barrier = Arc::new(Barrier::new(2));
153152

154-
let num: u64 = rand::thread_rng().gen();
153+
let num: u64 = rand::random();
155154
let name = format!("mio-abstract-uds-{num}");
156155
let address = SocketAddr::from_abstract_name(name.as_bytes()).unwrap();
157156
let mut listener = UnixListener::bind_addr(&address).unwrap();

tests/win_named_pipe.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::time::Duration;
88

99
use mio::windows::NamedPipe;
1010
use mio::{Events, Interest, Poll, Token};
11-
use rand::Rng;
1211
use windows_sys::Win32::{Foundation::ERROR_NO_DATA, Storage::FileSystem::FILE_FLAG_OVERLAPPED};
1312

1413
fn _assert_kinds() {
@@ -28,7 +27,7 @@ macro_rules! t {
2827
}
2928

3029
fn server() -> (NamedPipe, String) {
31-
let num: u64 = rand::thread_rng().gen();
30+
let num: u64 = rand::random();
3231
let name = format!(r"\\.\pipe\my-pipe-{}", num);
3332
let pipe = t!(NamedPipe::new(&name));
3433
(pipe, name)

0 commit comments

Comments
 (0)