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]