From 62f962ae5b0dfe944232348575477c90b4daf58b Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Mon, 22 Mar 2021 00:41:07 +0800 Subject: [PATCH] fix unix feature build --- actix-rt/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index 950c30cb..bd2e165d 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -117,13 +117,13 @@ pub mod net { impl ActixStream for UnixStream { fn poll_read_ready(&self, cx: &mut Context<'_>) -> Poll> { let ready = self.ready(Interest::READABLE); - self::pin!(ready); + tokio::pin!(ready); ready.poll(cx) } fn poll_write_ready(&self, cx: &mut Context<'_>) -> Poll> { let ready = self.ready(Interest::WRITABLE); - self::pin!(ready); + tokio::pin!(ready); ready.poll(cx) } }