Skip to content

Bump axum-prometheus from 0.4.0 to 0.6.1 in /axum1 #471

Bump axum-prometheus from 0.4.0 to 0.6.1 in /axum1

Bump axum-prometheus from 0.4.0 to 0.6.1 in /axum1 #471

GitHub Actions / clippy failed Jan 24, 2024 in 0s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check failure on line 99 in src/startup.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>: tower::Service<axum::http::Request<_>>` is not satisfied

error[E0277]: the trait bound `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>: tower::Service<axum::http::Request<_>>` is not satisfied
   --> src/startup.rs:81:13
    |
80  |           .layer(
    |            ----- required by a bound introduced by this call
81  | /             tower::ServiceBuilder::new()
82  | |                 .layer(TraceLayer::new_for_http())
83  | |                 .layer(metric_layer)
84  | |                 .layer(Extension(discord_oauth_client))
...   |
98  | |                         .allow_credentials(true),
99  | |                 ),
    | |_________________^ the trait `tower::Service<axum::http::Request<_>>` is not implemented for `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>`
    |
    = help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `axum_prometheus::lifecycle::service::LifeCycle<S, MC, CallbacksT, OnBodyChunkT>`
    = note: required for `Trace<LifeCycle<AddExtension<AddExtension<Session<Cors<Route>, ...>, ...>, ...>, ..., ..., ...>, ...>` to implement `tower::Service<axum::http::Request<_>>`
    = note: the full type name has been written to '/home/runner/work/Recipe/Recipe/axum1/target/debug/deps/axum1-a3b1e955cafb203b.long-type-17156561217800144687.txt'
note: required by a bound in `axum::Router::<S, B>::layer`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.6.20/src/routing/mod.rs:236:21
    |
233 |     pub fn layer<L, NewReqBody>(self, layer: L) -> Router<S, NewReqBody>
    |            ----- required by a bound in this associated function
...
236 |         L::Service: Service<Request<NewReqBody>> + Clone + Send + 'static,
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Router::<S, B>::layer`

Check failure on line 80 in src/startup.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>: tower::Service<axum::http::Request<_>>` is not satisfied

error[E0277]: the trait bound `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>: tower::Service<axum::http::Request<_>>` is not satisfied
  --> src/startup.rs:80:10
   |
80 |         .layer(
   |          ^^^^^ the trait `tower::Service<axum::http::Request<_>>` is not implemented for `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>`
   |
   = help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `axum_prometheus::lifecycle::service::LifeCycle<S, MC, CallbacksT, OnBodyChunkT>`
   = note: required for `Trace<LifeCycle<AddExtension<AddExtension<Session<Cors<Route>, ...>, ...>, ...>, ..., ..., ...>, ...>` to implement `tower::Service<axum::http::Request<_>>`
   = note: the full type name has been written to '/home/runner/work/Recipe/Recipe/axum1/target/debug/deps/axum1-a3b1e955cafb203b.long-type-17156561217800144687.txt'