hyper/http 1.0 bumps #2977
clippy
83 errors, 7 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 83 |
Warning | 7 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.0-nightly (ef71f1047 2024-01-21)
- cargo 1.77.0-nightly (1ae631085 2024-01-17)
- clippy 0.1.77 (ef71f10 2024-01-21)
Annotations
Check warning on line 11 in kube-client/src/client/mod.rs
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
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 116 in kube-client/src/client/mod.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> kube-client/src/client/mod.rs:116:32
|
116 | inner: Buffer::new(BoxService::new(service), 1024),
| ----------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `http_body_util::Full<bytes::Bytes>`, found `BodyStream<IntoStream<B>>`
| |
| arguments to this function are incorrect
|
= note: expected struct `tower::util::BoxService<_, http::Response<http_body_util::Full<bytes::Bytes>>, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>`
found struct `tower::util::BoxService<_, http::Response<http_body_util::BodyStream<client::body::IntoStream<B>>>, std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>>`
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-0.4.13/src/buffer/service.rs:68:12
|
68 | pub fn new(service: T, bound: usize) -> Self
| ^^^
Check failure on line 222 in kube-client/src/client/config_ext.rs
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.26.0/src/connector.rs:23:1
|
23 | 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.6.0/src/client.rs:19:1
|
19 | pub struct HttpsConnector<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check failure on line 200 in kube-client/src/client/builder.rs
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
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-1ee23c40669a96c0.long-type-14185298186337257200.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-1ee23c40669a96c0.long-type-2679872476124773705.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-1ee23c40669a96c0.long-type-12596814703662108625.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
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-1ee23c40669a96c0.long-type-2679872476124773705.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> {<... 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-1ee23c40669a96c0.long-type-12596814703662108625.txt'
Check failure on line 200 in kube-client/src/client/builder.rs
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-1ee23c40669a96c0.long-type-12596814703662108625.txt'
Check failure on line 200 in kube-client/src/client/builder.rs
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
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
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
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
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
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
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
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
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
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
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
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
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
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>`
Check failure on line 200 in kube-client/src/client/builder.rs
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:57
|
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 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
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
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>`