From 82216c8190a69eba23056d7d5de319cc53b46f73 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 24 Dec 2021 10:37:49 +0000 Subject: [PATCH] fix deprecation note --- actix-http/src/h2/mod.rs | 4 +++- actix-http/src/payload.rs | 7 +++++-- awc/CHANGES.md | 3 --- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/actix-http/src/h2/mod.rs b/actix-http/src/h2/mod.rs index 6d2605cae..47d51b420 100644 --- a/actix-http/src/h2/mod.rs +++ b/actix-http/src/h2/mod.rs @@ -101,9 +101,11 @@ where #[cfg(test)] mod tests { + use std::panic::{RefUnwindSafe, UnwindSafe}; + use static_assertions::assert_impl_all; use super::*; - assert_impl_all!(Payload: Unpin); + assert_impl_all!(Payload: Unpin, Send, Sync, UnwindSafe, RefUnwindSafe); } diff --git a/actix-http/src/payload.rs b/actix-http/src/payload.rs index 4a2107c0f..c9f338c7d 100644 --- a/actix-http/src/payload.rs +++ b/actix-http/src/payload.rs @@ -12,7 +12,7 @@ use crate::error::PayloadError; /// A boxed payload stream. pub type BoxedPayloadStream = Pin>>>; -#[deprecated(since = "4.0.0", note = "Renamed to `BoxedStream`.")] +#[deprecated(since = "4.0.0", note = "Renamed to `BoxedPayloadStream`.")] pub type PayloadStream = BoxedPayloadStream; pin_project_lite::pin_project! { @@ -78,9 +78,12 @@ where #[cfg(test)] mod tests { - use static_assertions::assert_impl_all; + use std::panic::{RefUnwindSafe, UnwindSafe}; + + use static_assertions::{assert_impl_all, assert_not_impl_any}; use super::*; assert_impl_all!(Payload: Unpin); + assert_not_impl_any!(Payload: Send, Sync, UnwindSafe, RefUnwindSafe); } diff --git a/awc/CHANGES.md b/awc/CHANGES.md index b8decdc32..b5144b7a2 100644 --- a/awc/CHANGES.md +++ b/awc/CHANGES.md @@ -3,11 +3,8 @@ ## Unreleased - 2021-xx-xx - Rename `Connector::{ssl => openssl}`. [#2503] - Improve `Client` instantiation efficiency when using `openssl` by only building connectors once. [#2503] -- `ClientResponse` is no longer `Unpin`. [#2545] -- `impl Stream` for `ClientResponse` no longer requires the body type be `Unpin`. [#2545] [#2503]: https://github.com/actix/actix-web/pull/2503 -[#2545]: https://github.com/actix/actix-web/pull/2545 ## 3.0.0-beta.14 - 2021-12-17