Update Rust crate http to v1 #1079
GitHub Actions / clippy
failed
Jan 1, 2025 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check failure on line 49 in src/provider/cloudflare/wrapper.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/provider/cloudflare/wrapper.rs:49:25
|
48 | ApiFailure::Error(code, _) => match code {
| ---- this expression has type `http::status::StatusCode`
49 | http::StatusCode::NOT_FOUND => return Ok(response),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `http::status::StatusCode`, found `http::StatusCode`
|
= note: `http::StatusCode` and `http::status::StatusCode` have similar names, but are actually distinct types
note: `http::StatusCode` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.2.0/src/status.rs:45:1
|
45 | pub struct StatusCode(NonZeroU16);
| ^^^^^^^^^^^^^^^^^^^^^
note: `http::status::StatusCode` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.12/src/status.rs:45:1
|
45 | pub struct StatusCode(NonZeroU16);
| ^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
Loading