update changelogs

This commit is contained in:
Rob Ede 2021-04-10 20:21:48 +01:00
parent 9b6c829e4f
commit 7102ab912d
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
4 changed files with 11 additions and 3 deletions

View File

@ -4,7 +4,12 @@
### Added
* `HttpResponse` and `HttpResponseBuilder` structs. [#2065]
### Changed
* Most error types are now marked `#[non_exhaustive]`. [#2148]
[#2065]: https://github.com/actix/actix-web/pull/2065
[#2148]: https://github.com/actix/actix-web/pull/2148
## 4.0.0-beta.5 - 2021-04-02
### Added

View File

@ -9,6 +9,7 @@
* Deprecated methods on `ResponseBuilder`: `if_true`, `if_some`. [#2148]
* `ResponseBuilder::json`. [#2148]
* `ResponseBuilder::{set_header, header}`. [#2148]
* `impl From<serde_json::Value> for Body`. [#2148]
[#2065]: https://github.com/actix/actix-web/pull/2065
[#2148]: https://github.com/actix/actix-web/pull/2148

View File

@ -1,6 +1,10 @@
# Changes
## Unreleased - 2021-xx-xx
### Removed
* Deprecated methods on `ClientRequest`: `if_true`, `if_some`. [#2148]
[#2148]: https://github.com/actix/actix-web/pull/2148
## 3.0.0-beta.4 - 2021-04-02

View File

@ -136,9 +136,7 @@ pub enum PathError {
/// Return `BadRequest` for `PathError`
impl ResponseError for PathError {
fn status_code(&self) -> StatusCode {
match self {
_ => StatusCode::BAD_REQUEST,
}
StatusCode::BAD_REQUEST
}
}