mirror of https://github.com/fafhrd91/actix-web
make web payload field private
This commit is contained in:
parent
8ae278cb68
commit
48745756bd
|
@ -2,9 +2,12 @@
|
|||
|
||||
## Unreleased - 2021-xx-xx
|
||||
### Changed
|
||||
* Asscociated type `FromRequest::Config` was removed. [#2233]
|
||||
* Associated type `FromRequest::Config` was removed. [#2233]
|
||||
* Inner field made private on `web::Payload`. [#????]
|
||||
|
||||
[#2233]: https://github.com/actix/actix-web/pull/2233
|
||||
[#????]: https://github.com/actix/actix-web/pull/????
|
||||
|
||||
|
||||
## 4.0.0-beta.9 - 2021-09-09
|
||||
### Added
|
||||
|
|
|
@ -43,10 +43,11 @@ use crate::{
|
|||
/// Ok(format!("Request Body Bytes:\n{:?}", bytes))
|
||||
/// }
|
||||
/// ```
|
||||
pub struct Payload(pub crate::dev::Payload);
|
||||
pub struct Payload(crate::dev::Payload);
|
||||
|
||||
impl Payload {
|
||||
/// Unwrap to inner Payload type.
|
||||
#[inline]
|
||||
pub fn into_inner(self) -> crate::dev::Payload {
|
||||
self.0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue