fix deprecation note

This commit is contained in:
Rob Ede 2021-12-24 10:37:49 +00:00
parent 8c7e4cd6d5
commit 82216c8190
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 8 additions and 6 deletions

View File

@ -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);
}

View File

@ -12,7 +12,7 @@ use crate::error::PayloadError;
/// A boxed payload stream.
pub type BoxedPayloadStream = Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>>>>;
#[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);
}

View File

@ -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