Skip to content

Commit d43f675

Browse files
committed
fix test code
1 parent b95bd6c commit d43f675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/io_timeout.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ use async_std::task;
88
fn io_timeout_timedout() {
99
task::block_on(async {
1010
io::timeout(Duration::from_secs(1), async {
11-
let stdin = io::stdin();
11+
let stdin = std::io::stdin();
1212
let mut line = String::new();
13-
let _n = stdin.read_line(&mut line).await?;
13+
let _n = stdin.read_line(&mut line)?;
1414
Ok(())
1515
})
1616
.await

0 commit comments

Comments
 (0)