Update Rust crate http to v1 #1079
ci.yml
on: push
Matrix: build-test
Lint
36s
Generate rustdoc
33s
Create Test Coverage Report
1m 16s
Matrix: gh-release-artifacts
Annotations
7 errors
mismatched types:
src/provider/cloudflare/wrapper.rs#L49
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?
|
mismatched types:
src/provider/cloudflare/wrapper.rs#L49
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?
|
Lint
Clippy had exited with the 101 exit code
|
Build and Test (x86_64-unknown-linux-gnu)
Process completed with exit code 1.
|
Build and Test (aarch64-unknown-linux-gnu)
The job was canceled because "x86_64-unknown-linux-gnu" failed.
|
Build and Test (aarch64-unknown-linux-gnu)
The operation was canceled.
|
Create Test Coverage Report
Process completed with exit code 1.
|