fix(deps): update rust crate axum to 0.8.0 - autoclosed #12
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
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)
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)
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)
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
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
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
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
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`