remove transpose combinator

This commit is contained in:
fakeshadow 2021-05-13 15:23:39 +08:00
parent 49d2e3f02d
commit 924eeda12d
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ where
let this = self.get_mut();
while let Some((req, tx)) =
ready!(Pin::new(&mut this.connection).poll_accept(cx)).transpose()?
ready!(Pin::new(&mut this.connection).poll_accept(cx)?)
{
let (parts, body) = req.into_parts();
let pl = crate::h2::Payload::new(body);