Skip to content

make request methods infallible. #1606

make request methods infallible.

make request methods infallible. #1606

GitHub Actions / clippy failed Apr 16, 2024 in 0s

clippy

3 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 3
Warning 0
Note 0
Help 0

Versions

  • rustc 1.79.0-nightly (ccfcd950b 2024-04-15)
  • cargo 1.79.0-nightly (48eca1b16 2024-04-12)
  • clippy 0.1.79 (ccfcd95 2024-04-15)

Annotations

Check failure on line 60 in test/tests/h2_v2.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `unwrap` found for struct `xitca_client::RequestBuilder` in the current scope

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<'_>`

Check failure on line 47 in test/tests/h3.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `?` operator can only be applied to values that implement `std::ops::Try`

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<'_>`

Check failure on line 20 in test/tests/h3.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `?` operator can only be applied to values that implement `std::ops::Try`

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<'_>`