mirror of https://github.com/fafhrd91/actix-web
lints + changelog
This commit is contained in:
parent
8ad12d7664
commit
e0b7ac516e
|
@ -10,12 +10,14 @@
|
||||||
- `Result` extractor wrapper can now convert error types. [#2581]
|
- `Result` extractor wrapper can now convert error types. [#2581]
|
||||||
- Associated types in `FromRequest` impl for `Option` and `Result` has changed. [#2581]
|
- Associated types in `FromRequest` impl for `Option` and `Result` has changed. [#2581]
|
||||||
- Maximim number of extractors has changed from 10 to 12. [#2582]
|
- Maximim number of extractors has changed from 10 to 12. [#2582]
|
||||||
|
- Removed bound `<B as MessageBody>::Error: Debug` in test utility functions in order to support returning opaque apps. [#2584]
|
||||||
|
|
||||||
[#1988]: https://github.com/actix/actix-web/pull/1988
|
[#1988]: https://github.com/actix/actix-web/pull/1988
|
||||||
[#2567]: https://github.com/actix/actix-web/pull/2567
|
[#2567]: https://github.com/actix/actix-web/pull/2567
|
||||||
[#2569]: https://github.com/actix/actix-web/pull/2569
|
[#2569]: https://github.com/actix/actix-web/pull/2569
|
||||||
[#2581]: https://github.com/actix/actix-web/pull/2581
|
[#2581]: https://github.com/actix/actix-web/pull/2581
|
||||||
[#2582]: https://github.com/actix/actix-web/pull/2582
|
[#2582]: https://github.com/actix/actix-web/pull/2582
|
||||||
|
[#2584]: https://github.com/actix/actix-web/pull/2584
|
||||||
|
|
||||||
|
|
||||||
## 4.0.0-beta.19 - 2022-01-04
|
## 4.0.0-beta.19 - 2022-01-04
|
||||||
|
|
|
@ -471,6 +471,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
|
#[allow(dead_code)]
|
||||||
async fn return_opaque_types() {
|
async fn return_opaque_types() {
|
||||||
fn test_app() -> App<
|
fn test_app() -> App<
|
||||||
impl ServiceFactory<
|
impl ServiceFactory<
|
||||||
|
@ -494,9 +495,9 @@ mod tests {
|
||||||
|
|
||||||
async fn compile_test(mut req: Vec<Request>) {
|
async fn compile_test(mut req: Vec<Request>) {
|
||||||
let svc = test_service().await;
|
let svc = test_service().await;
|
||||||
call_service(&svc, req.pop().unwrap());
|
call_service(&svc, req.pop().unwrap()).await;
|
||||||
call_and_read_body(&svc, req.pop().unwrap());
|
call_and_read_body(&svc, req.pop().unwrap()).await;
|
||||||
read_body(call_service(&svc, req.pop().unwrap()).await);
|
read_body(call_service(&svc, req.pop().unwrap()).await).await;
|
||||||
let _: String = call_and_read_body_json(&svc, req.pop().unwrap()).await;
|
let _: String = call_and_read_body_json(&svc, req.pop().unwrap()).await;
|
||||||
let _: String = read_body_json(call_service(&svc, req.pop().unwrap()).await).await;
|
let _: String = read_body_json(call_service(&svc, req.pop().unwrap()).await).await;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue