Skip to content

Commit 3f8136a

Browse files
committed
Prefer std::time::Duration
1 parent 1aecd5a commit 3f8136a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ use std::future::Future;
22
use std::io;
33
use std::pin::Pin;
44
use std::task::{Context, Poll};
5+
use std::time::Duration;
56

67
use tokio::io::{AsyncRead, AsyncWrite};
7-
use tokio::time::{timeout, Duration};
8+
use tokio::time::timeout;
89
use tokio_io_timeout::TimeoutStream;
910

1011
use hyper::client::connect::{Connect, Connected, Connection};

0 commit comments

Comments
 (0)