Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Update Rust crate axum to 0.7.0 - autoclosed #21

Closed
wants to merge 1 commit into from

Update Rust crate axum to 0.7.0

53c1949
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

Update Rust crate axum to 0.7.0 - autoclosed #21

Update Rust crate axum to 0.7.0
53c1949
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy failed May 5, 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.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check failure on line 76 in src/server.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> src/server.rs:76:14
    |
55  | async fn convert_content_type<B>(mut request: Request<B>, next: Next<B>) -> Response {
    |                               - found this type parameter
...
76  |     next.run(request).await
    |          --- ^^^^^^^ expected `Request<Body>`, found `Request<B>`
    |          |
    |          arguments to this method are incorrect
    |
    = note: expected struct `axum::http::Request<axum::body::Body>`
               found struct `axum::http::Request<B>`
note: method defined here
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.5/src/middleware/from_fn.rs:340:18
    |
340 |     pub async fn run(mut self, req: Request) -> Response {
    |                  ^^^

Check failure on line 55 in src/server.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

struct takes 0 generic arguments but 1 generic argument was supplied

error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
   --> src/server.rs:55:65
    |
55  | async fn convert_content_type<B>(mut request: Request<B>, next: Next<B>) -> Response {
    |                                                                 ^^^^--- help: remove these generics
    |                                                                 |
    |                                                                 expected 0 generic arguments
    |
note: struct defined here, with 0 generic parameters
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.5/src/middleware/from_fn.rs:334:12
    |
334 | pub struct Next {
    |            ^^^^

Check failure on line 48 in src/server.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: could not find `Server` in `axum`

error[E0433]: failed to resolve: could not find `Server` in `axum`
  --> src/server.rs:48:11
   |
48 |     axum::Server::bind(&listen_address)
   |           ^^^^^^ could not find `Server` in `axum`