Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate axum to 0.8.0 - autoclosed #12

Closed
wants to merge 1 commit into from

fix(deps): update rust crate axum to 0.8.0

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

fix(deps): update rust crate axum to 0.8.0 - autoclosed #12

fix(deps): update rust crate axum to 0.8.0
f52216f
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy failed Jan 1, 2025 in 1s

clippy

8 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 8
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 208 in /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/macros/try_join.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type annotations needed

error[E0282]: type annotations needed
  --> src/http/mod.rs:71:25
   |
71 |         if let Err(e) = tokio::try_join!(app, metrics) {
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::try_join` which comes from the expansion of the macro `tokio::try_join` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 187 in /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/macros/try_join.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type annotations needed

error[E0282]: type annotations needed
  --> src/http/mod.rs:71:25
   |
71 |         if let Err(e) = tokio::try_join!(app, metrics) {
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::try_join` which comes from the expansion of the macro `tokio::try_join` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 186 in /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/macros/try_join.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type annotations needed

error[E0282]: type annotations needed
  --> src/http/mod.rs:71:25
   |
71 |         if let Err(e) = tokio::try_join!(app, metrics) {
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::try_join` which comes from the expansion of the macro `tokio::try_join` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 184 in /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/macros/try_join.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type annotations needed

error[E0282]: type annotations needed
  --> src/http/mod.rs:71:25
   |
71 |         if let Err(e) = tokio::try_join!(app, metrics) {
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::try_join` which comes from the expansion of the macro `tokio::try_join` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 49 in src/http/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `tower_http::trace::Trace<axum::routing::Route, tower_http::classify::SharedClassifier<tower_http::classify::ServerErrorsAsFailures>>: tower::Service<axum::http::Request<axum::body::Body>>` is not satisfied

error[E0277]: the trait bound `tower_http::trace::Trace<axum::routing::Route, tower_http::classify::SharedClassifier<tower_http::classify::ServerErrorsAsFailures>>: tower::Service<axum::http::Request<axum::body::Body>>` is not satisfied
   --> src/http/mod.rs:45:13
    |
44  |           .layer(
    |            ----- required by a bound introduced by this call
45  | /             TraceLayer::new_for_http().make_span_with(
46  | |                 DefaultMakeSpan::new()
47  | |                     .level(Level::TRACE)
48  | |                     .include_headers(true),
49  | |             ),
    | |_____________^ the trait `tower::Service<axum::http::Request<axum::body::Body>>` is not implemented for `tower_http::trace::Trace<axum::routing::Route, tower_http::classify::SharedClassifier<tower_http::classify::ServerErrorsAsFailures>>`
    |
    = help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `tower_http::trace::Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT>`
note: the method call chain might not have had the expected associated types
   --> src/http/mod.rs:45:40
    |
45  |               TraceLayer::new_for_http().make_span_with(
    |  _____________--------------------------_^
    | |             |
    | |             this expression has type `TraceLayer<SharedClassifier<ServerErrorsAsFailures>>`
46  | |                 DefaultMakeSpan::new()
47  | |                     .level(Level::TRACE)
48  | |                     .include_headers(true),
49  | |             ),
    | |_____________^ `Layer::Service` is `Trace<_, SharedClassifier<ServerErrorsAsFailures>>` here
note: required by a bound in `axum::Router::<S>::layer`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.8.0/src/routing/mod.rs:300:21
    |
297 |     pub fn layer<L>(self, layer: L) -> Router<S>
    |            ----- required by a bound in this associated function
...
300 |         L::Service: Service<Request> + Clone + Send + Sync + 'static,
    |                     ^^^^^^^^^^^^^^^^ required by this bound in `Router::<S>::layer`

Check failure on line 36 in src/http/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> src/http/metrics.rs:36:25
    |
31  | pub async fn middleware<B>(req: Request<B>, next: Next<B>) -> Result<Response, StatusCode> {
    |                         - found this type parameter
...
36  |     let resp = next.run(req).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.8.0/src/middleware/from_fn.rs:345:18
    |
345 |     pub async fn run(mut self, req: Request) -> Response {
    |                  ^^^

Check failure on line 31 in src/http/metrics.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/http/metrics.rs:31:51
    |
31  | pub async fn middleware<B>(req: Request<B>, next: Next<B>) -> Result<Response, StatusCode> {
    |                                                   ^^^^--- help: remove the unnecessary generics
    |                                                   |
    |                                                   expected 0 generic arguments
    |
note: struct defined here, with 0 generic parameters
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.8.0/src/middleware/from_fn.rs:339:12
    |
339 | pub struct Next {
    |            ^^^^

Check failure on line 11 in src/http/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `axum::Server`

error[E0432]: unresolved import `axum::Server`
  --> src/http/mod.rs:11:59
   |
11 | use axum::{http::StatusCode, middleware, routing, Router, Server};
   |                                                           ^^^^^^
   |                                                           |
   |                                                           no `Server` in the root
   |                                                           help: a similar name exists in the module: `serve`