fix unix feature build

This commit is contained in:
fakeshadow 2021-03-22 00:41:07 +08:00
parent 3c5c388dcb
commit 62f962ae5b
1 changed files with 2 additions and 2 deletions

View File

@ -117,13 +117,13 @@ pub mod net {
impl ActixStream for UnixStream {
fn poll_read_ready(&self, cx: &mut Context<'_>) -> Poll<io::Result<Ready>> {
let ready = self.ready(Interest::READABLE);
self::pin!(ready);
tokio::pin!(ready);
ready.poll(cx)
}
fn poll_write_ready(&self, cx: &mut Context<'_>) -> Poll<io::Result<Ready>> {
let ready = self.ready(Interest::WRITABLE);
self::pin!(ready);
tokio::pin!(ready);
ready.poll(cx)
}
}