make request methods infallible. #1606
Annotations
4 errors and 12 warnings
no method named `unwrap` found for struct `xitca_client::RequestBuilder` in the current scope:
test/tests/h2_v2.rs#L60
error[E0599]: no method named `unwrap` found for struct `xitca_client::RequestBuilder` in the current scope
--> test/tests/h2_v2.rs:60:53
|
60 | let mut req = c.post("https://localhost:8080/").unwrap();
| ^^^^^^ method not found in `RequestBuilder<'_>`
|
the `?` operator can only be applied to values that implement `std::ops::Try`:
test/tests/h3.rs#L47
error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
--> test/tests/h3.rs:47:23
|
47 | let mut res = c.post(&server_url)?.version(Version::HTTP_3).text(body).send().await?;
| ^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `xitca_client::RequestBuilder<'_>`
|
= help: the trait `std::ops::Try` is not implemented for `xitca_client::RequestBuilder<'_>`
|
the `?` operator can only be applied to values that implement `std::ops::Try`:
test/tests/h3.rs#L20
error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
--> test/tests/h3.rs:20:23
|
20 | let mut res = c.get(&server_url)?.version(Version::HTTP_3).send().await?;
| ^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `xitca_client::RequestBuilder<'_>`
|
= help: the trait `std::ops::Try` is not implemented for `xitca_client::RequestBuilder<'_>`
|
clippy
Clippy had exited with the 101 exit code
|
fmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
fmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|