Skip to content

Commit d88759a

Browse files
committed
Fix the warnings that appear in I/O tests
1 parent 96f3bf8 commit d88759a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/async.rs

+2
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)