refactor(lib): Remove useless uses of Pin (#2405)

This commit is contained in:
Paolo Barbolini
2021-01-19 23:51:34 +01:00
committed by GitHub
parent 9956587f83
commit 237b2ce083
3 changed files with 16 additions and 22 deletions

View File

@@ -213,7 +213,7 @@ where
}
};
match Pin::new(&mut self.req_rx).poll_next(cx) {
match self.req_rx.poll_recv(cx) {
Poll::Ready(Some((req, cb))) => {
// check that future hasn't been canceled already
if cb.is_canceled() {