mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
test: make Spawn forward size_hint (#6607)
This commit is contained in:
@@ -148,6 +148,10 @@ impl<T: Stream> Stream for Spawn<T> {
|
||||
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
|
||||
self.future.as_mut().poll_next(cx)
|
||||
}
|
||||
|
||||
fn size_hint(&self) -> (usize, Option<usize>) {
|
||||
self.future.size_hint()
|
||||
}
|
||||
}
|
||||
|
||||
impl MockTask {
|
||||
|
||||
Reference in New Issue
Block a user