diff --git a/benches/support/tokiort.rs b/benches/support/tokiort.rs index 18d1d82306..6b0948e93f 100644 --- a/benches/support/tokiort.rs +++ b/benches/support/tokiort.rs @@ -49,21 +49,6 @@ impl Timer for TokioTimer { } } -struct TokioTimeout { - inner: Pin>>, -} - -impl Future for TokioTimeout -where - T: Future, -{ - type Output = Result; - - fn poll(mut self: Pin<&mut Self>, context: &mut Context<'_>) -> Poll { - self.inner.as_mut().poll(context) - } -} - // Use TokioSleep to get tokio::time::Sleep to implement Unpin. // see https://docs.rs/tokio/latest/tokio/time/struct.Sleep.html pin_project! {