Bump tower-http from 0.4.4 to 0.5.1 #61
Annotations
13 errors and 4 warnings
the trait bound `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>: tower::Service<axum::http::Request<_>>` is not satisfied:
src/middlewares/mod.rs#L31
error[E0277]: the trait bound `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>: tower::Service<axum::http::Request<_>>` is not satisfied
--> src/middlewares/mod.rs:31:18
|
31 | router.layer(middlewares).with_state(state)
| ----- ^^^^^^^^^^^ the trait `tower::Service<axum::http::Request<_>>` is not implemented for `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>`
| |
| required by a bound introduced by this call
|
= help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `tower_http::catch_panic::CatchPanic<S, T>`
note: the method call chain might not have had the expected associated types
--> src/middlewares/mod.rs:22:10
|
21 | let middlewares = ServiceBuilder::new()
| --------------------- this expression has type `ServiceBuilder<Identity>`
22 | .catch_panic()
| ^^^^^^^^^^^^^ `Layer::Service` is `CatchPanic<_, DefaultResponseForPanic>` here
23 | .sensitive_headers(iter::once(AUTHORIZATION))
| -------------------------------------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<_>>, DefaultResponseForPanic>` here
24 | .propagate_x_request_id()
| ------------------------ `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<_>>>, DefaultResponseForPanic>` here
25 | .layer(GetClaimsLayer::new(state.clone()))
| ----------------------------------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<_, S>>>>, DefaultResponseForPanic>` here
26 | .compression()
| ------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<_>, S>>>>, DefaultResponseForPanic>` here
27 | .decompression()
| --------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<_>>, S>>>>, DefaultResponseForPanic>` here
28 | .layer(cors_layer)
| ----------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<Cors<_>>>, S>>>>, DefaultResponseForPanic>` here
29 | .into_inner();
| ------------ `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<Cors<_>>>, S>>>>, DefaultResponseForPanic>` here
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`
|
the trait bound `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>: tower::Service<http::Request<_>>` is not satisfied:
src/middlewares/mod.rs#L31
error[E0277]: the trait bound `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>: tower::Service<http::Request<_>>` is not satisfied
--> src/middlewares/mod.rs:31:18
|
31 | router.layer(middlewares).with_state(state)
| ----- ^^^^^^^^^^^ the trait `tower::Service<http::Request<_>>` is not implemented for `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>`
| |
| required by a bound introduced by this call
|
= help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `tower_http::catch_panic::CatchPanic<S, T>`
note: the method call chain might not have had the expected associated types
--> src/middlewares/mod.rs:22:10
|
21 | let middlewares = ServiceBuilder::new()
| --------------------- this expression has type `ServiceBuilder<Identity>`
22 | .catch_panic()
| ^^^^^^^^^^^^^ `Layer::Service` is `CatchPanic<_, DefaultResponseForPanic>` here
23 | .sensitive_headers(iter::once(AUTHORIZATION))
| -------------------------------------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<_>>, DefaultResponseForPanic>` here
24 | .propagate_x_request_id()
| ------------------------ `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<_>>>, DefaultResponseForPanic>` here
25 | .layer(GetClaimsLayer::new(state.clone()))
| ----------------------------------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<_, S>>>>, DefaultResponseForPanic>` here
26 | .compression()
| ------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<_>, S>>>>, DefaultResponseForPanic>` here
27 | .decompression()
| --------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<_>>, S>>>>, DefaultResponseForPanic>` here
28 | .layer(cors_layer)
| ----------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<Cors<_>>>, S>>>>, DefaultResponseForPanic>` here
29 | .into_inner();
| ------------ `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<Cors<_>>>, S>>>>, DefaultResponseForPanic>` here
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`
|
type mismatch resolving `<Once<HeaderName> as IntoIterator>::Item == HeaderName`:
src/middlewares/mod.rs#L23
error[E0271]: type mismatch resolving `<Once<HeaderName> as IntoIterator>::Item == HeaderName`
--> src/middlewares/mod.rs:23:28
|
23 | .sensitive_headers(iter::once(AUTHORIZATION))
| ----------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `http::header::name::HeaderName`, found `http::HeaderName`
| |
| required by a bound introduced by this call
|
= note: `http::HeaderName` and `http::header::name::HeaderName` have similar names, but are actually distinct types
note: `http::HeaderName` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/name.rs:33:1
|
33 | pub struct HeaderName {
| ^^^^^^^^^^^^^^^^^^^^^
note: `http::header::name::HeaderName` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/header/name.rs:33:1
|
33 | pub struct HeaderName {
| ^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
note: required by a bound in `tower_http::ServiceBuilderExt::sensitive_headers`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.5.1/src/builder.rs:170:25
|
165 | fn sensitive_headers<I>(
| ----------------- required by a bound in this associated function
...
170 | I: IntoIterator<Item = HeaderName>;
| ^^^^^^^^^^^^^^^^^ required by this bound in `ServiceBuilderExt::sensitive_headers`
|
type mismatch resolving `<Once<HeaderName> as IntoIterator>::Item == HeaderName`:
src/middlewares/mod.rs#L23
error[E0271]: type mismatch resolving `<Once<HeaderName> as IntoIterator>::Item == HeaderName`
--> src/middlewares/mod.rs:23:28
|
23 | .sensitive_headers(iter::once(AUTHORIZATION))
| ----------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `http::header::name::HeaderName`, found `axum::headers::HeaderName`
| |
| required by a bound introduced by this call
|
= note: `axum::headers::HeaderName` and `http::header::name::HeaderName` have similar names, but are actually distinct types
note: `axum::headers::HeaderName` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/name.rs:33:1
|
33 | pub struct HeaderName {
| ^^^^^^^^^^^^^^^^^^^^^
note: `http::header::name::HeaderName` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/header/name.rs:33:1
|
33 | pub struct HeaderName {
| ^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
note: required by a bound in `tower_http::ServiceBuilderExt::sensitive_headers`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.5.1/src/builder.rs:170:25
|
165 | fn sensitive_headers<I>(
| ----------------- required by a bound in this associated function
...
170 | I: IntoIterator<Item = HeaderName>;
| ^^^^^^^^^^^^^^^^^ required by this bound in `ServiceBuilderExt::sensitive_headers`
|
the method `into_make_service` exists for struct `NormalizePath<Router>`, but its trait bounds were not satisfied:
src/lib.rs#L33
error[E0599]: the method `into_make_service` exists for struct `NormalizePath<Router>`, but its trait bounds were not satisfied
--> src/lib.rs:33:20
|
33 | .serve(app.into_make_service())
| ^^^^^^^^^^^^^^^^^ method cannot be called on `NormalizePath<Router>` due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.5.1/src/normalize_path.rs:76:1
|
76 | pub struct NormalizePath<S> {
| ---------------------------
| |
| doesn't satisfy `_: Service<_>`
| doesn't satisfy `_: ServiceExt<_>`
|
= note: the following trait bounds were not satisfied:
`tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
`&tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `&tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
`&mut tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `&mut tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
|
the method `into_make_service` exists for struct `NormalizePath<Router>`, but its trait bounds were not satisfied:
src/lib.rs#L33
error[E0599]: the method `into_make_service` exists for struct `NormalizePath<Router>`, but its trait bounds were not satisfied
--> src/lib.rs:33:20
|
33 | .serve(app.into_make_service())
| ^^^^^^^^^^^^^^^^^ method cannot be called on `NormalizePath<Router>` due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.5.1/src/normalize_path.rs:76:1
|
76 | pub struct NormalizePath<S> {
| ---------------------------
| |
| doesn't satisfy `_: Service<_>`
| doesn't satisfy `_: ServiceExt<_>`
|
= note: the following trait bounds were not satisfied:
`tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
`&tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `&tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
`&mut tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `&mut tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
|
the trait bound `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>: tower::Service<http::Request<_>>` is not satisfied:
src/middlewares/mod.rs#L31
error[E0277]: the trait bound `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>: tower::Service<http::Request<_>>` is not satisfied
--> src/middlewares/mod.rs:31:18
|
31 | router.layer(middlewares).with_state(state)
| ----- ^^^^^^^^^^^ the trait `tower::Service<http::Request<_>>` is not implemented for `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<...>>>, ...>`
| |
| required by a bound introduced by this call
|
= help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `tower_http::catch_panic::CatchPanic<S, T>`
note: the method call chain might not have had the expected associated types
--> src/middlewares/mod.rs:22:10
|
21 | let middlewares = ServiceBuilder::new()
| --------------------- this expression has type `ServiceBuilder<Identity>`
22 | .catch_panic()
| ^^^^^^^^^^^^^ `Layer::Service` is `CatchPanic<_, DefaultResponseForPanic>` here
23 | .sensitive_headers(iter::once(AUTHORIZATION))
| -------------------------------------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<_>>, DefaultResponseForPanic>` here
24 | .propagate_x_request_id()
| ------------------------ `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<_>>>, DefaultResponseForPanic>` here
25 | .layer(GetClaimsLayer::new(state.clone()))
| ----------------------------------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<_, S>>>>, DefaultResponseForPanic>` here
26 | .compression()
| ------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<_>, S>>>>, DefaultResponseForPanic>` here
27 | .decompression()
| --------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<_>>, S>>>>, DefaultResponseForPanic>` here
28 | .layer(cors_layer)
| ----------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<Cors<_>>>, S>>>>, DefaultResponseForPanic>` here
29 | .into_inner();
| ------------ `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<Cors<_>>>, S>>>>, DefaultResponseForPanic>` here
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`
|
type mismatch resolving `<Once<HeaderName> as IntoIterator>::Item == HeaderName`:
src/middlewares/mod.rs#L23
error[E0271]: type mismatch resolving `<Once<HeaderName> as IntoIterator>::Item == HeaderName`
--> src/middlewares/mod.rs:23:28
|
23 | .sensitive_headers(iter::once(AUTHORIZATION))
| ----------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `http::header::name::HeaderName`, found `http::HeaderName`
| |
| required by a bound introduced by this call
|
= note: `http::HeaderName` and `http::header::name::HeaderName` have similar names, but are actually distinct types
note: `http::HeaderName` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/name.rs:33:1
|
33 | pub struct HeaderName {
| ^^^^^^^^^^^^^^^^^^^^^
note: `http::header::name::HeaderName` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/header/name.rs:33:1
|
33 | pub struct HeaderName {
| ^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
note: required by a bound in `tower_http::ServiceBuilderExt::sensitive_headers`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.5.1/src/builder.rs:170:25
|
165 | fn sensitive_headers<I>(
| ----------------- required by a bound in this associated function
...
170 | I: IntoIterator<Item = HeaderName>;
| ^^^^^^^^^^^^^^^^^ required by this bound in `ServiceBuilderExt::sensitive_headers`
|
the trait bound `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>: tower::Service<axum::http::Request<_>>` is not satisfied:
src/middlewares/mod.rs#L31
error[E0277]: the trait bound `tower_http::catch_panic::CatchPanic<tower_http::sensitive_headers::SetSensitiveRequestHeaders<tower_http::sensitive_headers::SetSensitiveResponseHeaders<tower_http::request_id::PropagateRequestId<middlewares::claims::GetClaims<tower_http::compression::Compression<tower_http::decompression::Decompression<tower_http::cors::Cors<axum::routing::Route>>>, S>>>>, tower_http::catch_panic::DefaultResponseForPanic>: tower::Service<axum::http::Request<_>>` is not satisfied
--> src/middlewares/mod.rs:31:18
|
31 | router.layer(middlewares).with_state(state)
| ----- ^^^^^^^^^^^ the trait `tower::Service<axum::http::Request<_>>` is not implemented for `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<...>>>, ...>`
| |
| required by a bound introduced by this call
|
= help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `tower_http::catch_panic::CatchPanic<S, T>`
note: the method call chain might not have had the expected associated types
--> src/middlewares/mod.rs:22:10
|
21 | let middlewares = ServiceBuilder::new()
| --------------------- this expression has type `ServiceBuilder<Identity>`
22 | .catch_panic()
| ^^^^^^^^^^^^^ `Layer::Service` is `CatchPanic<_, DefaultResponseForPanic>` here
23 | .sensitive_headers(iter::once(AUTHORIZATION))
| -------------------------------------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<_>>, DefaultResponseForPanic>` here
24 | .propagate_x_request_id()
| ------------------------ `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<_>>>, DefaultResponseForPanic>` here
25 | .layer(GetClaimsLayer::new(state.clone()))
| ----------------------------------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<_, S>>>>, DefaultResponseForPanic>` here
26 | .compression()
| ------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<_>, S>>>>, DefaultResponseForPanic>` here
27 | .decompression()
| --------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<_>>, S>>>>, DefaultResponseForPanic>` here
28 | .layer(cors_layer)
| ----------------- `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<Cors<_>>>, S>>>>, DefaultResponseForPanic>` here
29 | .into_inner();
| ------------ `Layer::Service` remains `CatchPanic<SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<PropagateRequestId<GetClaims<Compression<Decompression<Cors<_>>>, S>>>>, DefaultResponseForPanic>` here
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`
|
type mismatch resolving `<Once<HeaderName> as IntoIterator>::Item == HeaderName`:
src/middlewares/mod.rs#L23
error[E0271]: type mismatch resolving `<Once<HeaderName> as IntoIterator>::Item == HeaderName`
--> src/middlewares/mod.rs:23:28
|
23 | .sensitive_headers(iter::once(AUTHORIZATION))
| ----------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `http::header::name::HeaderName`, found `axum::headers::HeaderName`
| |
| required by a bound introduced by this call
|
= note: `axum::headers::HeaderName` and `http::header::name::HeaderName` have similar names, but are actually distinct types
note: `axum::headers::HeaderName` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/name.rs:33:1
|
33 | pub struct HeaderName {
| ^^^^^^^^^^^^^^^^^^^^^
note: `http::header::name::HeaderName` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/header/name.rs:33:1
|
33 | pub struct HeaderName {
| ^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
note: required by a bound in `tower_http::ServiceBuilderExt::sensitive_headers`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.5.1/src/builder.rs:170:25
|
165 | fn sensitive_headers<I>(
| ----------------- required by a bound in this associated function
...
170 | I: IntoIterator<Item = HeaderName>;
| ^^^^^^^^^^^^^^^^^ required by this bound in `ServiceBuilderExt::sensitive_headers`
|
the method `into_make_service` exists for struct `NormalizePath<Router>`, but its trait bounds were not satisfied:
src/lib.rs#L33
error[E0599]: the method `into_make_service` exists for struct `NormalizePath<Router>`, but its trait bounds were not satisfied
--> src/lib.rs:33:20
|
33 | .serve(app.into_make_service())
| ^^^^^^^^^^^^^^^^^ method cannot be called on `NormalizePath<Router>` due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.5.1/src/normalize_path.rs:76:1
|
76 | pub struct NormalizePath<S> {
| ---------------------------
| |
| doesn't satisfy `_: Service<_>`
| doesn't satisfy `_: ServiceExt<_>`
|
= note: the following trait bounds were not satisfied:
`tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
`&tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `&tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
`&mut tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `&mut tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
|
the method `into_make_service` exists for struct `NormalizePath<Router>`, but its trait bounds were not satisfied:
src/lib.rs#L33
error[E0599]: the method `into_make_service` exists for struct `NormalizePath<Router>`, but its trait bounds were not satisfied
--> src/lib.rs:33:20
|
33 | .serve(app.into_make_service())
| ^^^^^^^^^^^^^^^^^ method cannot be called on `NormalizePath<Router>` due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.5.1/src/normalize_path.rs:76:1
|
76 | pub struct NormalizePath<S> {
| ---------------------------
| |
| doesn't satisfy `_: Service<_>`
| doesn't satisfy `_: ServiceExt<_>`
|
= note: the following trait bounds were not satisfied:
`tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
`&tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `&tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
`&mut tower_http::normalize_path::NormalizePath<axum::Router>: tower::Service<_>`
which is required by `&mut tower_http::normalize_path::NormalizePath<axum::Router>: axum::ServiceExt<_>`
|
ubuntu
Process completed with exit code 101.
|
unused import: `axum::ServiceExt`:
src/lib.rs#L13
warning: unused import: `axum::ServiceExt`
--> src/lib.rs:13:5
|
13 | use axum::ServiceExt;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `axum::ServiceExt`:
src/lib.rs#L13
warning: unused import: `axum::ServiceExt`
--> src/lib.rs:13:5
|
13 | use axum::ServiceExt;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `axum::ServiceExt`:
src/lib.rs#L13
warning: unused import: `axum::ServiceExt`
--> src/lib.rs:13:5
|
13 | use axum::ServiceExt;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `axum::ServiceExt`:
src/lib.rs#L13
warning: unused import: `axum::ServiceExt`
--> src/lib.rs:13:5
|
13 | use axum::ServiceExt;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|