From 705b31230ff10e20fd641ef18e2c9593f5560c94 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sat, 18 Dec 2021 02:17:48 +0000 Subject: [PATCH] fix impl assertion tests --- actix-utils/src/future/ready.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/actix-utils/src/future/ready.rs b/actix-utils/src/future/ready.rs index 678d6304..e35f6574 100644 --- a/actix-utils/src/future/ready.rs +++ b/actix-utils/src/future/ready.rs @@ -106,12 +106,13 @@ mod tests { use std::rc::Rc; use futures_util::task::noop_waker; - use static_assertions::{assert_impl_all, assert_not_impl_all}; + use static_assertions::{assert_impl_all, assert_not_impl_any}; use super::*; - assert_impl_all!(Ready<()>: Send, Sync, Clone); - assert_not_impl_all!(Ready>: Send, Sync); + assert_impl_all!(Ready<()>: Send, Sync, Unpin, Clone); + assert_impl_all!(Ready>: Unpin, Clone); + assert_not_impl_any!(Ready>: Send, Sync); #[test] #[should_panic]