parent
e70bb38ce8
commit
1e500b3bc7
@ -1,3 +1,4 @@
|
|||||||
/combine-4.6.0.crate
|
/combine-4.6.0.crate
|
||||||
/combine-4.6.3.crate
|
/combine-4.6.3.crate
|
||||||
/combine-4.6.4.crate
|
/combine-4.6.4.crate
|
||||||
|
/combine-4.6.6.crate
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
diff -Naur a/tests/support/mod.rs b/tests/support/mod.rs
|
|
||||||
--- a/tests/support/mod.rs 1969-12-31 16:00:00.000000000 -0800
|
|
||||||
+++ b/tests/support/mod.rs 2021-07-14 21:47:18.502065660 -0700
|
|
||||||
@@ -61,42 +61,6 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-impl<R> tokio_03_dep::io::AsyncRead for PartialAsyncRead<R>
|
|
||||||
-where
|
|
||||||
- R: tokio_03_dep::io::AsyncRead + Unpin,
|
|
||||||
-{
|
|
||||||
- fn poll_read(
|
|
||||||
- mut self: Pin<&mut Self>,
|
|
||||||
- cx: &mut task::Context<'_>,
|
|
||||||
- buf: &mut tokio_03_dep::io::ReadBuf<'_>,
|
|
||||||
- ) -> Poll<io::Result<()>> {
|
|
||||||
- match self.ops.next() {
|
|
||||||
- Some(PartialOp::Limited(n)) => {
|
|
||||||
- let len = std::cmp::min(n, buf.remaining());
|
|
||||||
- buf.initialize_unfilled();
|
|
||||||
- let mut sub_buf = buf.take(len);
|
|
||||||
- ready!(Pin::new(&mut self.inner).poll_read(cx, &mut sub_buf))?;
|
|
||||||
- let filled = sub_buf.filled().len();
|
|
||||||
- buf.advance(filled);
|
|
||||||
- Poll::Ready(Ok(()))
|
|
||||||
- }
|
|
||||||
- Some(PartialOp::Err(err)) => {
|
|
||||||
- if err == io::ErrorKind::WouldBlock {
|
|
||||||
- cx.waker().wake_by_ref();
|
|
||||||
- Poll::Pending
|
|
||||||
- } else {
|
|
||||||
- Err(io::Error::new(
|
|
||||||
- err,
|
|
||||||
- "error during read, generated by partial-io",
|
|
||||||
- ))
|
|
||||||
- .into()
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
- Some(PartialOp::Unlimited) | None => Pin::new(&mut self.inner).poll_read(cx, buf),
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
impl<R> tokio_dep::io::AsyncRead for PartialAsyncRead<R>
|
|
||||||
where
|
|
||||||
R: tokio_dep::io::AsyncRead + Unpin,
|
|
@ -1 +1 @@
|
|||||||
SHA512 (combine-4.6.4.crate) = 2550aba009b8ab66230e7b21fd1cb5085c92bc280e31f35c9b02dc78fa138ef9b9ece0d7801473b88d11866b013c6fa3bb6e9611bdc1a7b85144e50a49829774
|
SHA512 (combine-4.6.6.crate) = ff9ef9329de2cfc103271a25ad1fcb7e478f3328843bd8a65653e80b74112728ad4a33326a58ed7ef8cf39eec7c3b797fc287295ba149ee0dccb1de9721b5819
|
||||||
|
Loading…
Reference in new issue