Skip to content

Update Rust crate http to v1 #1079

Update Rust crate http to v1

Update Rust crate http to v1 #1079

Triggered via push January 1, 2025 23:06
Status Failure
Total duration 1m 24s
Artifacts

ci.yml

on: push
Matrix: build-test
Lint
36s
Lint
Generate rustdoc
33s
Generate rustdoc
Create Test Coverage Report
1m 16s
Create Test Coverage Report
Publish Docker Image
0s
Publish Docker Image
Publish to crates.io
0s
Publish to crates.io
Matrix: gh-release-artifacts
Fit to window
Zoom out
Zoom in

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.