Skip to content

Commit b010227

Browse files
committed
Fix the warnings that appear in I/O tests
1 parent c5b8cc3 commit b010227

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/async.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ use std::io;
55
use std::net::{Shutdown, TcpListener, TcpStream, UdpSocket};
66
#[cfg(unix)]
77
use std::os::unix::net::{UnixDatagram, UnixListener, UnixStream};
8+
#[cfg(feature = "timer")]
89
use std::sync::Arc;
910
use std::thread;
11+
#[cfg(feature = "timer")]
1012
use std::time::Duration;
1113

1214
use async_io::Async;

0 commit comments

Comments
 (0)