Skip to content

hyper/http 1.0 bumps #2904

hyper/http 1.0 bumps

hyper/http 1.0 bumps #2904

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Nov 21, 2023 in 3s

clippy

94 errors, 7 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 94
Warning 7
Note 0
Help 0

Versions

  • rustc 1.76.0-nightly (3a85a5cfe 2023-11-20)
  • cargo 1.76.0-nightly (71cd3a926 2023-11-20)
  • clippy 0.1.76 (3a85a5c 2023-11-20)

Annotations

Check failure on line 165 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

trait objects must include the `dyn` keyword

error[E0782]: trait objects must include the `dyn` keyword
   --> kube-client/src/client/builder.rs:165:46
    |
165 |                 .on_response(|res: &Response<Body>, _latency: Duration, span: &Span| {
    |                                              ^^^^
    |
help: add `dyn` keyword before this trait
    |
165 |                 .on_response(|res: &Response<dyn Body>, _latency: Duration, span: &Span| {
    |                                              +++

Check failure on line 162 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

trait objects must include the `dyn` keyword

error[E0782]: trait objects must include the `dyn` keyword
   --> kube-client/src/client/builder.rs:162:45
    |
162 |                 .on_request(|_req: &Request<Body>, _span: &Span| {
    |                                             ^^^^
    |
help: add `dyn` keyword before this trait
    |
162 |                 .on_request(|_req: &Request<dyn Body>, _span: &Span| {
    |                                             +++

Check failure on line 151 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

trait objects must include the `dyn` keyword

error[E0782]: trait objects must include the `dyn` keyword
   --> kube-client/src/client/builder.rs:151:48
    |
151 |                 .make_span_with(|req: &Request<Body>| {
    |                                                ^^^^
    |
help: add `dyn` keyword before this trait
    |
151 |                 .make_span_with(|req: &Request<dyn Body>| {
    |                                                +++

Check warning on line 11 in kube-client/src/client/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `TryStreamExt`

warning: unused import: `TryStreamExt`
  --> kube-client/src/client/mod.rs:11:57
   |
11 | use futures::{self, AsyncBufRead, StreamExt, TryStream, TryStreamExt};
   |                                                         ^^^^^^^^^^^^

Check warning on line 11 in kube-client/src/client/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `StreamExt`

warning: unused import: `StreamExt`
  --> kube-client/src/client/mod.rs:11:35
   |
11 | use futures::{self, AsyncBufRead, StreamExt, TryStream, TryStreamExt};
   |                                   ^^^^^^^^^

Check failure on line 114 in kube-client/src/client/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the method `map_err` exists for struct `MapResponseBody<S, {[email protected]:112:49}>`, but its trait bounds were not satisfied

error[E0599]: the method `map_err` exists for struct `MapResponseBody<S, {[email protected]:112:49}>`, but its trait bounds were not satisfied
   --> kube-client/src/client/mod.rs:114:14
    |
112 |           let service = MapResponseBodyLayer::new(|b: B| BodyStream::new(b.into_stream()))
    |  _______________________-
113 | |             .layer(service)
114 | |             .map_err(|e| e.into());
    | |             -^^^^^^^ method cannot be called on `MapResponseBody<S, {[email protected]:112:49}>` due to unsatisfied trait bounds
    | |_____________|
    | 
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.4.4/src/map_response_body.rs:130:1
    |
130 |   pub struct MapResponseBody<S, F> {
    |   --------------------------------
    |   |
    |   doesn't satisfy `_: Service<_>`
    |   doesn't satisfy `_: ServiceExt<_>`
    |   doesn't satisfy `_: TryStreamExt`
    |   doesn't satisfy `_: TryStream`
    |
    = note: the following trait bounds were not satisfied:
            `tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStream`
            which is required by `tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStreamExt`
            `tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::Service<_>`
            which is required by `tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::ServiceExt<_>`
            `&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStream`
            which is required by `&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStreamExt`
            `&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::Service<_>`
            which is required by `&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::ServiceExt<_>`
            `&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStream`
            which is required by `&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStreamExt`
            `&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::Service<_>`
            which is required by `&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::ServiceExt<_>`

Check failure on line 222 in kube-client/src/client/config_ext.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> kube-client/src/client/config_ext.rs:222:9
    |
219 |     fn rustls_https_connector(&self) -> Result<HttpsConnector<HttpConnector>> {
    |                                         ------------------------------------- expected `std::result::Result<hyper_tls::HttpsConnector<hyper_util::client::legacy::connect::HttpConnector>, error::Error>` because of return type
...
222 |         self.rustls_https_connector_with_connector(connector)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `HttpsConnector<HttpConnector>`, found a different `HttpsConnector<HttpConnector>`
    |
    = note: `HttpsConnector<HttpConnector>` and `HttpsConnector<HttpConnector>` have similar names, but are actually distinct types
note: `HttpsConnector<HttpConnector>` is defined in crate `hyper_rustls`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-rustls-0.24.2/src/connector.rs:19:1
    |
19  | pub struct HttpsConnector<T> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `HttpsConnector<HttpConnector>` is defined in crate `hyper_tls`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-tls-0.5.0/src/client.rs:16:1
    |
16  | pub struct HttpsConnector<T> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `dyn http_body::Body` cannot be known at compilation time

error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
   --> kube-client/src/client/builder.rs:200:51
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                                                   ^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
    = note: all function arguments must have a statically known size
    = help: unsized fn params are gated as an unstable feature

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`dyn http_body::Body` cannot be unpinned

error[E0277]: `dyn http_body::Body` cannot be unpinned
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `__Origin<'_, dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>`, the trait `std::marker::Unpin` is not implemented for `dyn http_body::Body`
    |
    = note: the full trait has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-173706936813054769.txt'
    = note: consider using the `pin!` macro
            consider using `Box::pin` if you need to access the pinned value outside of the current scope
note: required because it appears within the type `__Origin<'_, dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<Box<dyn Error + Send + Sync> as From<<dyn Body as Body>::Error>>::from}>`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:10:1
    |
10  | / pin_project! {
11  | |     /// Body returned by the [`map_err`] combinator.
12  | |     ///
13  | |     /// [`map_err`]: crate::BodyExt::map_err
...   |
19  | |     }
20  | | }
    | |_^
    = note: required for `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::from}>` to implement `std::marker::Unpin`
    = note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-18415756556919062869.txt'
    = note: required for the cast from `Box<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>>` to `Box<dyn Body<Data = Bytes, Error = Box<dyn Error + Send + Sync>> + Send + Unpin>`
    = note: the full name for the source type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-5956978238016699945.txt'
    = note: the full name for the target type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-5554490984141788244.txt'
    = note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`dyn http_body::Body` cannot be sent between threads safely

error[E0277]: `dyn http_body::Body` cannot be sent between threads safely
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `dyn http_body::Body` cannot be sent between threads safely
    |
    = note: the full trait has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-18415756556919062869.txt'
    = help: within `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::from}>`, the trait `std::marker::Send` is not implemented for `dyn http_body::Body`
note: required because it appears within the type `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<Box<dyn Error + Send + Sync> as From<<dyn Body as Body>::Error>>::from}>`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:16
    |
15  |     pub struct MapErr<B, F> {
    |                ^^^^^^
    = note: required for the cast from `Box<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>>` to `Box<dyn Body<Data = Bytes, Error = Box<dyn Error + Send + Sync>> + Send + Unpin>`
    = note: the full name for the source type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-5956978238016699945.txt'
    = note: the full name for the target type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-5554490984141788244.txt'

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type mismatch resolving `<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<Box<dyn Error + Send + Sync> as From<<dyn Body as Body>::Error>>::from}> as Body>::Data == Bytes`

error[E0271]: type mismatch resolving `<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<Box<dyn Error + Send + Sync> as From<<dyn Body as Body>::Error>>::from}> as Body>::Data == Bytes`
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Bytes`, found associated type
    |
    = note:       expected struct `bytes::Bytes`
            found associated type `<dyn http_body::Body as http_body::Body>::Data`
    = help: consider constraining the associated type `<dyn http_body::Body as http_body::Body>::Data` to `bytes::Bytes`
    = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
    = note: required for the cast from `Box<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>>` to `Box<dyn Body<Data = Bytes, Error = Box<dyn Error + Send + Sync>> + Send + Unpin>`
    = note: the full name for the source type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-5956978238016699945.txt'
    = note: the full name for the target type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-4a6eaf0c45f582b3.long-type-5554490984141788244.txt'

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `dyn http_body::Body` cannot be known at compilation time

error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
    |
15  |     pub struct MapErr<B, F> {
    |                       ^ required by this bound in `MapErr`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely

error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
    |
    = help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely

error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
    |
    = help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied

error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    |
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `dyn http_body::Body` cannot be known at compilation time

error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
    |
15  |     pub struct MapErr<B, F> {
    |                       ^ required by this bound in `MapErr`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely

error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
    |
    = help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely

error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
    |
    = help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied

error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
   --> kube-client/src/client/builder.rs:200:17
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                 ^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    |
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `dyn http_body::Body` cannot be known at compilation time

error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
   --> kube-client/src/client/builder.rs:200:26
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
    |
15  |     pub struct MapErr<B, F> {
    |                       ^ required by this bound in `MapErr`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely

error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
   --> kube-client/src/client/builder.rs:200:26
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
    |
    = help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely

error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
   --> kube-client/src/client/builder.rs:200:26
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
    |
    = help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied

error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
   --> kube-client/src/client/builder.rs:200:26
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    |
    = help: the following other types implement trait `std::convert::From<T>`:
              <std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
              <std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
              <std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
              <std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
              <std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
            and 21 others
    = note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely

error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
   --> kube-client/src/client/builder.rs:200:57
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                                                         ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
    |
    = help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    = help: the trait `std::convert::From<std::string::String>` is implemented for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>`
    = help: for that trait implementation, expected `std::string::String`, found `<dyn http_body::Body as http_body::Body>::Error`
    = note: required for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`

Check failure on line 200 in kube-client/src/client/builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely

error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
   --> kube-client/src/client/builder.rs:200:57
    |
200 |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
    |                                                         ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
    |
    = help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
    = help: the trait `std::convert::From<std::string::String>` is implemented for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>`
    = help: for that trait implementation, expected `std::string::String`, found `<dyn http_body::Body as http_body::Body>::Error`
    = note: required for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`