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

hyper/http 1.0 bumps #1352

Closed
wants to merge 21 commits into from

leftover thing

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

hyper/http 1.0 bumps #1352

leftover thing
a573aa1
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy failed Feb 12, 2024 in 1s

clippy

55 errors, 1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 55
Warning 1
Note 0
Help 0

Versions

  • rustc 1.78.0-nightly (1a648b397 2024-02-11)
  • cargo 1.78.0-nightly (ccc84ccec 2024-02-07)
  • clippy 0.1.78 (1a648b3 2024-02-11)

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `oauth`

error[E0433]: failed to resolve: use of undeclared crate or module `oauth`
   --> kube-client/src/client/auth/mod.rs:366:14
    |
366 |     GcpOauth(oauth::Gcp),
    |              ^^^^^ use of undeclared crate or module `oauth`

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

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `oidc`

error[E0433]: failed to resolve: use of undeclared crate or module `oidc`
   --> kube-client/src/client/auth/mod.rs:360:10
    |
360 |     Oidc(oidc::Oidc),
    |          ^^^^ use of undeclared crate or module `oidc`

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

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `oidc`

error[E0433]: failed to resolve: use of undeclared crate or module `oidc`
   --> kube-client/src/client/auth/mod.rs:179:20
    |
179 |     Oidc(Arc<Mutex<oidc::Oidc>>),
    |                    ^^^^ use of undeclared crate or module `oidc`

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

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `oauth`

error[E0433]: failed to resolve: use of undeclared crate or module `oauth`
   --> kube-client/src/client/auth/mod.rs:177:24
    |
177 |     GcpOauth(Arc<Mutex<oauth::Gcp>>),
    |                        ^^^^^ use of undeclared crate or module `oauth`

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

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `oidc_errors`

error[E0433]: failed to resolve: use of undeclared crate or module `oidc_errors`
   --> kube-client/src/client/auth/mod.rs:100:20
    |
100 |     Oidc(#[source] oidc_errors::Error),
    |                    ^^^^^^^^^^^ use of undeclared crate or module `oidc_errors`

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

See this annotation in the file changed.

@github-actions github-actions / clippy

type annotations needed

error[E0282]: type annotations needed
   --> kube-client/src/client/mod.rs:118:50
    |
118 |         let service = MapResponseBodyLayer::new(|x| x.into_stream())
    |                                                  ^  - type must be known at this point
    |
help: consider giving this closure parameter an explicit type
    |
118 |         let service = MapResponseBodyLayer::new(|x: /* Type */| x.into_stream())
    |                                                   ++++++++++++

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`, which is required by `http_body_util::combinators::MapErr<dyn http_body::Body, fn(<dyn http_body::Body as http_body::Body>::Error) -> std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync> {<std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync> as std::convert::From<<dyn http_body::Body as http_body::Body>::Error>>::from}>: std::marker::Unpin`
    |
    = note: the full trait has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-09fb6e429bb87576.long-type-15092599368866313213.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<...> {<... as From<...>>::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-09fb6e429bb87576.long-type-6299840359524281934.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 type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-09fb6e429bb87576.long-type-15004451591121006522.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-09fb6e429bb87576.long-type-6299840359524281934.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`, which is required by `http_body_util::combinators::MapErr<dyn http_body::Body, fn(<dyn http_body::Body as http_body::Body>::Error) -> std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync> {<std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync> as std::convert::From<<dyn http_body::Body as http_body::Body>::Error>>::from}>: std::marker::Send`
note: required because it appears within the type `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::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 type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-09fb6e429bb87576.long-type-15004451591121006522.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 type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-09fb6e429bb87576.long-type-15004451591121006522.txt'

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

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> kube-client/src/client/builder.rs:198:9
    |
197 |       Ok(ClientBuilder::new(
    |          ------------------ arguments to this function are incorrect
198 | /         BoxService::new(
199 | |             MapResponseBodyLayer::new(|body| {
200 | |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
201 | |             })
202 | |             .layer(service),
203 | |         ),
    | |_________^ expected `bytes::Bytes`, found `hyper::body::Incoming`
    |
    = note: expected struct `BoxService<Request<Bytes>, Response<BoxBody<Bytes, Box<dyn Error + Send + Sync>>>, Box<...>>`
               found struct `tower::util::BoxService<http::Request<hyper::body::Incoming>, http::Response<_>, _>`
    = note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-09fb6e429bb87576.long-type-2969633616524633164.txt'
note: associated function defined here
   --> kube-client/src/client/builder.rs:36:12
    |
36  |     pub fn new(service: Svc, default_namespace: impl Into<String>) -> Self
    |            ^^^ ------------

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

See this annotation in the file changed.

@github-actions github-actions / clippy

type mismatch in closure arguments

error[E0631]: type mismatch in closure arguments
   --> kube-client/src/client/builder.rs:198:9
    |
198 | /         BoxService::new(
199 | |             MapResponseBodyLayer::new(|body| {
    | |                                       ------ found signature defined here
200 | |                 Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
201 | |             })
202 | |             .layer(service),
203 | |         ),
    | |_________^ expected due to this
    |
    = note: expected closure signature `fn(tower_http::decompression::DecompressionBody<tower_http::trace::ResponseBody<hyper::body::Incoming, tower_http::classify::NeverClassifyEos<tower_http::classify::ServerErrorsFailureClass>, (), {closure@kube-client/src/client/builder.rs:174:25: 174:83}, {closure@kube-client/src/client/builder.rs:177:29: 177:92}>>) -> _`
               found closure signature `fn(dyn http_body::Body) -> _`
    = note: required for `MapResponseBody<BaseUri<Decompression<Either<Either<AddAuthorization<ExtraHeaders<...>>, ...>, ...>>>, ...>` to implement `tower::Service<http::Request<hyper::body::Incoming>>`
    = note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-09fb6e429bb87576.long-type-17305735611663094137.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 an implicit `Sized` 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 the implicit `Sized` requirement on this type parameter 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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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 an implicit `Sized` 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 the implicit `Sized` requirement on this type parameter 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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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 an implicit `Sized` 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 the implicit `Sized` requirement on this type parameter 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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<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`, which is required by `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>: std::convert::From<<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 + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`