Skip to content

Commit bb818cc

Browse files
authored
refactor(common): Remove unused TokioTimeout (#3464)
1 parent 6d26ee0 commit bb818cc

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

benches/support/tokiort.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,6 @@ impl Timer for TokioTimer {
4949
}
5050
}
5151

52-
struct TokioTimeout<T> {
53-
inner: Pin<Box<tokio::time::Timeout<T>>>,
54-
}
55-
56-
impl<T> Future for TokioTimeout<T>
57-
where
58-
T: Future,
59-
{
60-
type Output = Result<T::Output, tokio::time::error::Elapsed>;
61-
62-
fn poll(mut self: Pin<&mut Self>, context: &mut Context<'_>) -> Poll<Self::Output> {
63-
self.inner.as_mut().poll(context)
64-
}
65-
}
66-
6752
// Use TokioSleep to get tokio::time::Sleep to implement Unpin.
6853
// see https://docs.rs/tokio/latest/tokio/time/struct.Sleep.html
6954
pin_project! {

0 commit comments

Comments
 (0)