Skip to content

hyper/http 1.0 bumps #2904

hyper/http 1.0 bumps

hyper/http 1.0 bumps #2904

Triggered via pull request November 21, 2023 12:46
Status Failure
Total duration 1m 7s
Artifacts

clippy.yml

on: pull_request
clippy_nightly
56s
clippy_nightly
Fit to window
Zoom out
Zoom in

Annotations

95 errors and 12 warnings
trait objects must include the `dyn` keyword: kube-client/src/client/builder.rs#L165
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| { | +++
trait objects must include the `dyn` keyword: kube-client/src/client/builder.rs#L162
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| { | +++
trait objects must include the `dyn` keyword: kube-client/src/client/builder.rs#L151
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>| { | +++
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#L114
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<_>`
mismatched types: kube-client/src/client/config_ext.rs#L222
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> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/builder.rs#L200
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
`dyn http_body::Body` cannot be unpinned: kube-client/src/client/builder.rs#L200
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)
`dyn http_body::Body` cannot be sent between threads safely: kube-client/src/client/builder.rs#L200
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'
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#L200
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'
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/builder.rs#L200
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`
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely: kube-client/src/client/builder.rs#L200
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>`
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely: kube-client/src/client/builder.rs#L200
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>`
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied: kube-client/src/client/builder.rs#L200
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>`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/builder.rs#L200
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`
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely: kube-client/src/client/builder.rs#L200
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>`
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely: kube-client/src/client/builder.rs#L200
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>`
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied: kube-client/src/client/builder.rs#L200
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>`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/builder.rs#L200
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`
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely: kube-client/src/client/builder.rs#L200
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>`
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely: kube-client/src/client/builder.rs#L200
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>`
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied: kube-client/src/client/builder.rs#L200
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>`
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely: kube-client/src/client/builder.rs#L200
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>`
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely: kube-client/src/client/builder.rs#L200
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>`
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied: kube-client/src/client/builder.rs#L200
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>`
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely: kube-client/src/client/builder.rs#L200
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>`
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely: kube-client/src/client/builder.rs#L200
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>`
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied: kube-client/src/client/builder.rs#L200
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>`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/builder.rs#L199
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/builder.rs:199:40 | 199 | MapResponseBodyLayer::new(|body| { | ^^^^ 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
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/builder.rs#L200
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::BodyExt::map_err` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/lib.rs:59:15 | 57 | fn map_err<F, E>(self, f: F) -> MapErr<Self, F> | ------- required by a bound in this associated function 58 | where 59 | Self: Sized, | ^^^^^ required by this bound in `BodyExt::map_err`
trait objects must include the `dyn` keyword: kube-client/src/client/builder.rs#L200
error[E0782]: trait objects must include the `dyn` keyword --> kube-client/src/client/builder.rs:200:26 | 200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody> | ^^^^^^^^^^^^^^^ | help: add `dyn` keyword before this trait | 200 | Box::new(<dyn http_body::Body>::map_err(body, BoxError::from)) as Box<DynBody> | ++++ +
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified: kube-client/src/client/builder.rs#L200
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified --> kube-client/src/client/builder.rs:200:26 | 200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody> | ^^^^^^^^^^^^^^^ help: specify the associated types: `http_body::Body<Data = Type, Error = Type>`
the method `status` exists for reference `&Response<dyn Body>`, but its trait bounds were not satisfied: kube-client/src/client/builder.rs#L166
error[E0599]: the method `status` exists for reference `&Response<dyn Body>`, but its trait bounds were not satisfied --> kube-client/src/client/builder.rs:166:38 | 166 | let status = res.status(); | ^^^^^^ method cannot be called on `&Response<dyn Body>` due to unsatisfied trait bounds | ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-1.0.0/src/lib.rs:39:1 | 39 | pub trait Body { | -------------- doesn't satisfy `dyn http_body::Body: std::marker::Sized` | = note: the following trait bounds were not satisfied: `dyn http_body::Body: std::marker::Sized`
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified: kube-client/src/client/builder.rs#L165
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified --> kube-client/src/client/builder.rs:165:46 | 165 | .on_response(|res: &Response<Body>, _latency: Duration, span: &Span| { | ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified: kube-client/src/client/builder.rs#L162
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified --> kube-client/src/client/builder.rs:162:45 | 162 | .on_request(|_req: &Request<Body>, _span: &Span| { | ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
the method `extensions` exists for reference `&Request<dyn Body>`, but its trait bounds were not satisfied: kube-client/src/client/builder.rs#L157
error[E0599]: the method `extensions` exists for reference `&Request<dyn Body>`, but its trait bounds were not satisfied --> kube-client/src/client/builder.rs:157:42 | 157 | otel.name = req.extensions().get::<&'static str>().unwrap_or(&"HTTP"), | ^^^^^^^^^^ method cannot be called on `&Request<dyn Body>` due to unsatisfied trait bounds | ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-1.0.0/src/lib.rs:39:1 | 39 | pub trait Body { | -------------- doesn't satisfy `dyn http_body::Body: std::marker::Sized` | = note: the following trait bounds were not satisfied: `dyn http_body::Body: std::marker::Sized`
the method `uri` exists for reference `&Request<dyn Body>`, but its trait bounds were not satisfied: kube-client/src/client/builder.rs#L155
error[E0599]: the method `uri` exists for reference `&Request<dyn Body>`, but its trait bounds were not satisfied --> kube-client/src/client/builder.rs:155:42 | 155 | http.url = %req.uri(), | ^^^ method cannot be called on `&Request<dyn Body>` due to unsatisfied trait bounds | ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-1.0.0/src/lib.rs:39:1 | 39 | pub trait Body { | -------------- doesn't satisfy `dyn http_body::Body: std::marker::Sized` | = note: the following trait bounds were not satisfied: `dyn http_body::Body: std::marker::Sized`
the method `method` exists for reference `&Request<dyn Body>`, but its trait bounds were not satisfied: kube-client/src/client/builder.rs#L154
error[E0599]: the method `method` exists for reference `&Request<dyn Body>`, but its trait bounds were not satisfied --> kube-client/src/client/builder.rs:154:45 | 154 | http.method = %req.method(), | ^^^^^^ method cannot be called on `&Request<dyn Body>` due to unsatisfied trait bounds | ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-1.0.0/src/lib.rs:39:1 | 39 | pub trait Body { | -------------- doesn't satisfy `dyn http_body::Body: std::marker::Sized` | = note: the following trait bounds were not satisfied: `dyn http_body::Body: std::marker::Sized`
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified: kube-client/src/client/builder.rs#L151
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified --> kube-client/src/client/builder.rs:151:48 | 151 | .make_span_with(|req: &Request<Body>| { | ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
no function or associated item named `builder` found for struct `hyper::client::conn::http1::Builder` in the current scope: kube-client/src/client/builder.rs#L133
error[E0599]: no function or associated item named `builder` found for struct `hyper::client::conn::http1::Builder` in the current scope --> kube-client/src/client/builder.rs:133:23 | 133 | HyperBuilder::builder().build(connector) | ^^^^^^^ function or associated item not found in `Builder` | note: if you're trying to build a new `hyper::client::conn::http1::Builder`, consider using `hyper::client::conn::http1::Builder::new` which returns `hyper::client::conn::http1::Builder` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-1.0.1/src/client/conn/http1.rs:292:5 | 292 | pub fn new() -> Builder { | ^^^^^^^^^^^^^^^^^^^^^^^
the trait bound `H: tower::Service<tokio_tungstenite::tungstenite::http::Uri>` is not satisfied: kube-client/src/client/builder.rs#L126
error[E0277]: the trait bound `H: tower::Service<tokio_tungstenite::tungstenite::http::Uri>` is not satisfied --> kube-client/src/client/builder.rs:126:29 | 126 | let mut connector = TimeoutConnector::new(connector); | ^^^^^^^^^^^^^^^^^^^^^ the trait `tower::Service<tokio_tungstenite::tungstenite::http::Uri>` is not implemented for `H` | = note: required for `hyper_rustls::HttpsConnector<H>` to implement `tower::Service<tokio_tungstenite::tungstenite::http::Uri>` help: consider further restricting this bound | 102 | H: 'static + Clone + Send + Sync + Service<http::Uri> + tower::Service<tokio_tungstenite::tungstenite::http::Uri>, | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
the trait bound `tokio::net::TcpStream: hyper::rt::Write` is not satisfied: kube-client/src/client/builder.rs#L94
error[E0277]: the trait bound `tokio::net::TcpStream: hyper::rt::Write` is not satisfied --> kube-client/src/client/builder.rs:94:30 | 94 | make_generic_builder(connector, config) | -------------------- ^^^^^^^^^ the trait `hyper::rt::Write` is not implemented for `tokio::net::TcpStream` | | | required by a bound introduced by this call | = help: the following other types implement trait `hyper::rt::Write`: std::boxed::Box<T> hyper::upgrade::Upgraded hyper_util::rt::TokioIo<T> std::pin::Pin<P> &mut T = note: required for `hyper_util::rt::TokioIo<tokio::net::TcpStream>` to implement `tokio::io::AsyncWrite` note: required by a bound in `client::builder::make_generic_builder` --> kube-client/src/client/builder.rs:103:40 | 100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error> | -------------------- required by a bound in this function ... 103 | H::Response: 'static + AsyncRead + AsyncWrite + Send + Unpin, | ^^^^^^^^^^ required by this bound in `make_generic_builder`
the trait bound `tokio::net::TcpStream: hyper::rt::Read` is not satisfied: kube-client/src/client/builder.rs#L94
error[E0277]: the trait bound `tokio::net::TcpStream: hyper::rt::Read` is not satisfied --> kube-client/src/client/builder.rs:94:30 | 94 | make_generic_builder(connector, config) | -------------------- ^^^^^^^^^ the trait `hyper::rt::Read` is not implemented for `tokio::net::TcpStream` | | | required by a bound introduced by this call | = help: the following other types implement trait `hyper::rt::Read`: std::boxed::Box<T> hyper::upgrade::Upgraded hyper_util::rt::TokioIo<T> std::pin::Pin<P> &mut T = note: required for `hyper_util::rt::TokioIo<tokio::net::TcpStream>` to implement `tokio::io::AsyncRead` note: required by a bound in `client::builder::make_generic_builder` --> kube-client/src/client/builder.rs:103:28 | 100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error> | -------------------- required by a bound in this function ... 103 | H::Response: 'static + AsyncRead + AsyncWrite + Send + Unpin, | ^^^^^^^^^ required by this bound in `make_generic_builder`
the trait bound `hyper_socks2::SocksConnector<hyper_util::client::legacy::connect::HttpConnector>: tower::Service<http::Uri>` is not satisfied: kube-client/src/client/builder.rs#L91
error[E0277]: the trait bound `hyper_socks2::SocksConnector<hyper_util::client::legacy::connect::HttpConnector>: tower::Service<http::Uri>` is not satisfied --> kube-client/src/client/builder.rs:91:41 | 91 | return make_generic_builder(connector, config); | -------------------- ^^^^^^^^^ the trait `tower::Service<http::Uri>` is not implemented for `hyper_socks2::SocksConnector<hyper_util::client::legacy::connect::HttpConnector>` | | | required by a bound introduced by this call | = help: the trait `tower::Service<tokio_tungstenite::tungstenite::http::Uri>` is implemented for `hyper_socks2::SocksConnector<C>` note: required by a bound in `client::builder::make_generic_builder` --> kube-client/src/client/builder.rs:102:40 | 100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error> | -------------------- required by a bound in this function 101 | where 102 | H: 'static + Clone + Send + Sync + Service<http::Uri>, | ^^^^^^^^^^^^^^^^^^ required by this bound in `make_generic_builder`
mismatched types: kube-client/src/client/builder.rs#L86
error[E0308]: mismatched types --> kube-client/src/client/builder.rs:86:17 | 86 | proxy_addr, | ^^^^^^^^^^ expected `Uri`, found `http::Uri` | = note: `http::Uri` and `Uri` have similar names, but are actually distinct types note: `http::Uri` is defined in crate `http` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/uri/mod.rs:96:1 | 96 | pub struct Uri { | ^^^^^^^^^^^^^^ note: `Uri` is defined in crate `http` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.11/src/uri/mod.rs:96:1 | 96 | pub struct Uri { | ^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `http` are being used?
no method named `poll_data` found for struct `std::pin::Pin<&mut B>` in the current scope: kube-client/src/client/body.rs#L30
error[E0599]: no method named `poll_data` found for struct `std::pin::Pin<&mut B>` in the current scope --> kube-client/src/client/body.rs:30:29 | 30 | self.project().body.poll_data(cx) | ^^^^^^^^^ method not found in `Pin<&mut B>` | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `poll_data`, perhaps you need to implement it: candidate #1: `http_body::Body`
mismatched types: kube-client/src/client/auth/oauth.rs#L149
error[E0308]: mismatched types --> kube-client/src/client/auth/oauth.rs:149:71 | 149 | tame_oauth::Error::Http(e) => Err(Error::BuildRequest(e)), | ------------------- ^ expected `http::Error`, found `Error` | | | arguments to this enum variant are incorrect | = note: `Error` and `http::Error` have similar names, but are actually distinct types note: `Error` is defined in crate `http` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.11/src/error.rs:16:1 | 16 | pub struct Error { | ^^^^^^^^^^^^^^^^ note: `http::Error` is defined in crate `http` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/error.rs:16:1 | 16 | pub struct Error { | ^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `http` are being used? note: tuple variant defined here --> kube-client/src/client/auth/oauth.rs:52:5 | 52 | BuildRequest(#[source] http::Error), | ^^^^^^^^^^^^
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied: kube-client/src/client/mod.rs#L204
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied --> kube-client/src/client/mod.rs:204:53 | 204 | Ok(WebSocketStream::from_raw_socket(upgraded, ws::protocol::Role::Client, None).await) | -------------------------------- ^^^^^^^^ the trait `tokio::io::AsyncWrite` is not implemented for `hyper::upgrade::Upgraded` | | | required by a bound introduced by this call | = help: the following other types implement trait `tokio::io::AsyncWrite`: hyper_rustls::acceptor::TlsStream<C> hyper_timeout::stream::TimeoutConnectorStream<S> hyper_tls::MaybeHttpsStream<T> tokio_rustls::common::Stream<'a, IO, C> tokio_io_timeout::TimeoutReader<R> hyper_tls::TlsStream<S> tokio_io_timeout::TimeoutWriter<W> hyper_rustls::MaybeHttpsStream<T> and 42 others note: required by a bound in `tokio_tungstenite::WebSocketStream::<S>::from_raw_socket` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-tungstenite-0.20.1/src/lib.rs:208:24 | 206 | pub async fn from_raw_socket(stream: S, role: Role, config: Option<WebSocketConfig>) -> Self | --------------- required by a bound in this associated function 207 | where 208 | S: AsyncRead + AsyncWrite + Unpin, | ^^^^^^^^^^ required by this bound in `WebSocketStream::<S>::from_raw_socket`
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied: kube-client/src/client/mod.rs#L204
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied --> kube-client/src/client/mod.rs:204:53 | 204 | Ok(WebSocketStream::from_raw_socket(upgraded, ws::protocol::Role::Client, None).await) | -------------------------------- ^^^^^^^^ the trait `tokio::io::AsyncRead` is not implemented for `hyper::upgrade::Upgraded` | | | required by a bound introduced by this call | = help: the following other types implement trait `tokio::io::AsyncRead`: hyper_rustls::acceptor::TlsStream<C> hyper_timeout::stream::TimeoutConnectorStream<S> hyper_tls::MaybeHttpsStream<T> tokio_rustls::common::Stream<'a, IO, C> tokio_io_timeout::TimeoutReader<R> hyper_tls::TlsStream<S> tokio_io_timeout::TimeoutWriter<W> hyper_rustls::MaybeHttpsStream<T> and 43 others note: required by a bound in `tokio_tungstenite::WebSocketStream::<S>::from_raw_socket` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-tungstenite-0.20.1/src/lib.rs:208:12 | 206 | pub async fn from_raw_socket(stream: S, role: Role, config: Option<WebSocketConfig>) -> Self | --------------- required by a bound in this associated function 207 | where 208 | S: AsyncRead + AsyncWrite + Unpin, | ^^^^^^^^^ required by this bound in `WebSocketStream::<S>::from_raw_socket`
mismatched types: kube-client/src/client/mod.rs#L200
error[E0308]: mismatched types --> kube-client/src/client/mod.rs:200:56 | 200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?; | ------------------- ^^^^^^^^^^^^^^^^ expected `Incoming`, found `dyn Body` | | | arguments to this function are incorrect | = note: expected struct `hyper::body::Incoming` found trait object `dyn http_body::Body` note: associated function defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/request.rs:461:12 | 461 | pub fn from_parts(parts: Parts, body: T) -> Request<T> { | ^^^^^^^^^^
mismatched types: kube-client/src/client/mod.rs#L200
error[E0308]: mismatched types --> kube-client/src/client/mod.rs:200:67 | 200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?; | ---------- ^^^^ expected `dyn Body`, found `Vec<u8>` | | | arguments to this function are incorrect | = note: expected trait object `dyn http_body::Body` found struct `std::vec::Vec<u8>` note: associated function defined here --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:584:8
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:200:67 | 200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?; | ---------- ^^^^ doesn't have a size known at compile-time | | | required by a bound introduced by this call | = help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body` note: required by a bound in `std::convert::From::from` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:584:5
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:200:56 | 200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?; | ^^^^ 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 `std::convert::From::from` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:584:5
trait objects must include the `dyn` keyword: kube-client/src/client/mod.rs#L200
error[E0782]: trait objects must include the `dyn` keyword --> kube-client/src/client/mod.rs:200:56 | 200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?; | ^^^^ | help: add `dyn` keyword before this trait | 200 | let res = self.send(Request::from_parts(parts, <dyn Body>::from(body))).await?; | ++++ +
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified: kube-client/src/client/mod.rs#L200
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified --> kube-client/src/client/mod.rs:200:56 | 200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?; | ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied: kube-client/src/api/subresource.rs#L603
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied --> kube-client/src/api/subresource.rs:603:31 | 603 | Ok(Portforwarder::new(stream, ports)) | ------------------ ^^^^^^ the trait `tokio::io::AsyncWrite` is not implemented for `hyper::upgrade::Upgraded` | | | required by a bound introduced by this call | = help: the following other types implement trait `tokio::io::AsyncWrite`: hyper_rustls::acceptor::TlsStream<C> hyper_timeout::stream::TimeoutConnectorStream<S> hyper_tls::MaybeHttpsStream<T> tokio_rustls::common::Stream<'a, IO, C> tokio_io_timeout::TimeoutReader<R> hyper_tls::TlsStream<S> tokio_io_timeout::TimeoutWriter<W> hyper_rustls::MaybeHttpsStream<T> and 42 others note: required by a bound in `api::portforward::Portforwarder::new` --> kube-client/src/api/portforward.rs:94:24 | 92 | pub(crate) fn new<S>(stream: WebSocketStream<S>, port_nums: &[u16]) -> Self | --- required by a bound in this associated function 93 | where 94 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static, | ^^^^^^^^^^ required by this bound in `Portforwarder::new`
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied: kube-client/src/api/subresource.rs#L603
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied --> kube-client/src/api/subresource.rs:603:31 | 603 | Ok(Portforwarder::new(stream, ports)) | ------------------ ^^^^^^ the trait `tokio::io::AsyncRead` is not implemented for `hyper::upgrade::Upgraded` | | | required by a bound introduced by this call | = help: the following other types implement trait `tokio::io::AsyncRead`: hyper_rustls::acceptor::TlsStream<C> hyper_timeout::stream::TimeoutConnectorStream<S> hyper_tls::MaybeHttpsStream<T> tokio_rustls::common::Stream<'a, IO, C> tokio_io_timeout::TimeoutReader<R> hyper_tls::TlsStream<S> tokio_io_timeout::TimeoutWriter<W> hyper_rustls::MaybeHttpsStream<T> and 43 others note: required by a bound in `api::portforward::Portforwarder::new` --> kube-client/src/api/portforward.rs:94:12 | 92 | pub(crate) fn new<S>(stream: WebSocketStream<S>, port_nums: &[u16]) -> Self | --- required by a bound in this associated function 93 | where 94 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static, | ^^^^^^^^^ required by this bound in `Portforwarder::new`
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied: kube-client/src/api/subresource.rs#L564
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied --> kube-client/src/api/subresource.rs:564:33 | 564 | Ok(AttachedProcess::new(stream, ap)) | -------------------- ^^^^^^ the trait `tokio::io::AsyncWrite` is not implemented for `hyper::upgrade::Upgraded` | | | required by a bound introduced by this call | = help: the following other types implement trait `tokio::io::AsyncWrite`: hyper_rustls::acceptor::TlsStream<C> hyper_timeout::stream::TimeoutConnectorStream<S> hyper_tls::MaybeHttpsStream<T> tokio_rustls::common::Stream<'a, IO, C> tokio_io_timeout::TimeoutReader<R> hyper_tls::TlsStream<S> tokio_io_timeout::TimeoutWriter<W> hyper_rustls::MaybeHttpsStream<T> and 42 others note: required by a bound in `api::remote_command::AttachedProcess::new` --> kube-client/src/api/remote_command.rs:116:24 | 114 | pub(crate) fn new<S>(stream: WebSocketStream<S>, ap: &AttachParams) -> Self | --- required by a bound in this associated function 115 | where 116 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static, | ^^^^^^^^^^ required by this bound in `AttachedProcess::new`
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied: kube-client/src/api/subresource.rs#L564
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied --> kube-client/src/api/subresource.rs:564:33 | 564 | Ok(AttachedProcess::new(stream, ap)) | -------------------- ^^^^^^ the trait `tokio::io::AsyncRead` is not implemented for `hyper::upgrade::Upgraded` | | | required by a bound introduced by this call | = help: the following other types implement trait `tokio::io::AsyncRead`: hyper_rustls::acceptor::TlsStream<C> hyper_timeout::stream::TimeoutConnectorStream<S> hyper_tls::MaybeHttpsStream<T> tokio_rustls::common::Stream<'a, IO, C> tokio_io_timeout::TimeoutReader<R> hyper_tls::TlsStream<S> tokio_io_timeout::TimeoutWriter<W> hyper_rustls::MaybeHttpsStream<T> and 43 others note: required by a bound in `api::remote_command::AttachedProcess::new` --> kube-client/src/api/remote_command.rs:116:12 | 114 | pub(crate) fn new<S>(stream: WebSocketStream<S>, ap: &AttachParams) -> Self | --- required by a bound in this associated function 115 | where 116 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static, | ^^^^^^^^^ required by this bound in `AttachedProcess::new`
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied: kube-client/src/api/subresource.rs#L506
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied --> kube-client/src/api/subresource.rs:506:33 | 506 | Ok(AttachedProcess::new(stream, ap)) | -------------------- ^^^^^^ the trait `tokio::io::AsyncWrite` is not implemented for `hyper::upgrade::Upgraded` | | | required by a bound introduced by this call | = help: the following other types implement trait `tokio::io::AsyncWrite`: hyper_rustls::acceptor::TlsStream<C> hyper_timeout::stream::TimeoutConnectorStream<S> hyper_tls::MaybeHttpsStream<T> tokio_rustls::common::Stream<'a, IO, C> tokio_io_timeout::TimeoutReader<R> hyper_tls::TlsStream<S> tokio_io_timeout::TimeoutWriter<W> hyper_rustls::MaybeHttpsStream<T> and 42 others note: required by a bound in `api::remote_command::AttachedProcess::new` --> kube-client/src/api/remote_command.rs:116:24 | 114 | pub(crate) fn new<S>(stream: WebSocketStream<S>, ap: &AttachParams) -> Self | --- required by a bound in this associated function 115 | where 116 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static, | ^^^^^^^^^^ required by this bound in `AttachedProcess::new`
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied: kube-client/src/api/subresource.rs#L506
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied --> kube-client/src/api/subresource.rs:506:33 | 506 | Ok(AttachedProcess::new(stream, ap)) | -------------------- ^^^^^^ the trait `tokio::io::AsyncRead` is not implemented for `hyper::upgrade::Upgraded` | | | required by a bound introduced by this call | = help: the following other types implement trait `tokio::io::AsyncRead`: hyper_rustls::acceptor::TlsStream<C> hyper_timeout::stream::TimeoutConnectorStream<S> hyper_tls::MaybeHttpsStream<T> tokio_rustls::common::Stream<'a, IO, C> tokio_io_timeout::TimeoutReader<R> hyper_tls::TlsStream<S> tokio_io_timeout::TimeoutWriter<W> hyper_rustls::MaybeHttpsStream<T> and 43 others note: required by a bound in `api::remote_command::AttachedProcess::new` --> kube-client/src/api/remote_command.rs:116:12 | 114 | pub(crate) fn new<S>(stream: WebSocketStream<S>, ap: &AttachParams) -> Self | --- required by a bound in this associated function 115 | where 116 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static, | ^^^^^^^^^ required by this bound in `AttachedProcess::new`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L247
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:247:41 | 247 | let res = self.send(request.map(Body::from)).await?; | ^^^^^^^^^^ 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
the method `map_err` exists for struct `Incoming`, but its trait bounds were not satisfied: kube-client/src/client/mod.rs#L252
error[E0599]: the method `map_err` exists for struct `Incoming`, but its trait bounds were not satisfied --> kube-client/src/client/mod.rs:252:14 | 250 | let body = res | ____________________- 251 | | .into_body() 252 | | .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e)); | | -^^^^^^^ method cannot be called on `Incoming` due to unsatisfied trait bounds | |_____________| | | ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-1.0.1/src/body/incoming.rs:37:1 | 37 | pub struct Incoming { | ------------------- | | | doesn't satisfy `hyper::body::Incoming: futures::TryStreamExt` | doesn't satisfy `hyper::body::Incoming: futures::TryStream` | doesn't satisfy `hyper::body::Incoming: tower::Service<_>` | doesn't satisfy `hyper::body::Incoming: tower::ServiceExt<_>` | = note: the following trait bounds were not satisfied: `hyper::body::Incoming: futures::TryStream` which is required by `hyper::body::Incoming: futures::TryStreamExt` `hyper::body::Incoming: tower::Service<_>` which is required by `hyper::body::Incoming: tower::ServiceExt<_>` `&hyper::body::Incoming: futures::TryStream` which is required by `&hyper::body::Incoming: futures::TryStreamExt` `&hyper::body::Incoming: tower::Service<_>` which is required by `&hyper::body::Incoming: tower::ServiceExt<_>` `&mut hyper::body::Incoming: futures::TryStream` which is required by `&mut hyper::body::Incoming: futures::TryStreamExt` `&mut hyper::body::Incoming: tower::Service<_>` which is required by `&mut hyper::body::Incoming: tower::ServiceExt<_>` = help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope; perhaps add a `use` for it: | 10 + use http_body_util::BodyExt; |
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L247
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:247:29 | 247 | let res = self.send(request.map(Body::from)).await?; | ^^^^^^^^^^^^^^^^^^^^^^^ 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 `std::convert::From` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:579:1
type mismatch in function arguments: kube-client/src/client/mod.rs#L247
error[E0631]: type mismatch in function arguments --> kube-client/src/client/mod.rs:247:41 | 247 | let res = self.send(request.map(Body::from)).await?; | --- ^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(std::vec::Vec<u8>) -> _` found function signature `fn(dyn http_body::Body) -> _` note: required by a bound in `http::Request::<T>::map` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/request.rs:691:12 | 689 | pub fn map<F, U>(self, f: F) -> Request<U> | --- required by a bound in this associated function 690 | where 691 | F: FnOnce(T) -> U, | ^^^^^^^^^^^^^^ required by this bound in `Request::<T>::map`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L247
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:247:41 | 247 | let res = self.send(request.map(Body::from)).await?; | ^^^^ 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 `std::convert::From::from` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:584:5
trait objects must include the `dyn` keyword: kube-client/src/client/mod.rs#L247
error[E0782]: trait objects must include the `dyn` keyword --> kube-client/src/client/mod.rs:247:41 | 247 | let res = self.send(request.map(Body::from)).await?; | ^^^^ | help: add `dyn` keyword before this trait | 247 | let res = self.send(request.map(<dyn Body>::from)).await?; | ++++ +
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified: kube-client/src/client/mod.rs#L247
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified --> kube-client/src/client/mod.rs:247:41 | 247 | let res = self.send(request.map(Body::from)).await?; | ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L287
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:287:41 | 287 | let res = self.send(request.map(Body::from)).await?; | ^^^^^^^^^^ 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
the size for values of type `str` cannot be known at compilation time: kube-client/src/client/mod.rs#L343
error[E0277]: the size for values of type `str` cannot be known at compilation time --> kube-client/src/client/mod.rs:343:17 | 343 | Err(LinesCodecError::MaxLineLengthExceeded) => { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `str` note: required by a bound in `std::prelude::v1::Err` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/result.rs:511:5
the size for values of type `str` cannot be known at compilation time: kube-client/src/client/mod.rs#L326
error[E0277]: the size for values of type `str` cannot be known at compilation time --> kube-client/src/client/mod.rs:326:17 | 326 | Err(LinesCodecError::Io(e)) => match e.kind() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `str` note: required by a bound in `std::prelude::v1::Err` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/result.rs:511:5
the size for values of type `str` cannot be known at compilation time: kube-client/src/client/mod.rs#L309
error[E0277]: the size for values of type `str` cannot be known at compilation time --> kube-client/src/client/mod.rs:309:17 | 309 | Ok(line) => match serde_json::from_str::<WatchEvent<T>>(&line) { | ^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `str` note: required by a bound in `std::prelude::v1::Ok` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/result.rs:506:5
the size for values of type `str` cannot be known at compilation time: kube-client/src/client/mod.rs#L309
error[E0277]: the size for values of type `str` cannot be known at compilation time --> kube-client/src/client/mod.rs:309:20 | 309 | Ok(line) => match serde_json::from_str::<WatchEvent<T>>(&line) { | ^^^^ doesn't have a size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `str` = note: all local variables must have a statically known size = help: unsized locals are gated as an unstable feature
the method `map_err` exists for struct `Incoming`, but its trait bounds were not satisfied: kube-client/src/client/mod.rs#L292
error[E0599]: the method `map_err` exists for struct `Incoming`, but its trait bounds were not satisfied --> kube-client/src/client/mod.rs:292:47 | 292 | StreamReader::new(res.into_body().map_err(|e| { | ----------------^^^^^^^ method cannot be called on `Incoming` due to unsatisfied trait bounds | ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-1.0.1/src/body/incoming.rs:37:1 | 37 | pub struct Incoming { | ------------------- | | | doesn't satisfy `hyper::body::Incoming: futures::TryStreamExt` | doesn't satisfy `hyper::body::Incoming: futures::TryStream` | doesn't satisfy `hyper::body::Incoming: tower::Service<_>` | doesn't satisfy `hyper::body::Incoming: tower::ServiceExt<_>` | = note: the following trait bounds were not satisfied: `hyper::body::Incoming: futures::TryStream` which is required by `hyper::body::Incoming: futures::TryStreamExt` `hyper::body::Incoming: tower::Service<_>` which is required by `hyper::body::Incoming: tower::ServiceExt<_>` `&hyper::body::Incoming: futures::TryStream` which is required by `&hyper::body::Incoming: futures::TryStreamExt` `&hyper::body::Incoming: tower::Service<_>` which is required by `&hyper::body::Incoming: tower::ServiceExt<_>` `&mut hyper::body::Incoming: futures::TryStream` which is required by `&mut hyper::body::Incoming: futures::TryStreamExt` `&mut hyper::body::Incoming: tower::Service<_>` which is required by `&mut hyper::body::Incoming: tower::ServiceExt<_>` = help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope; perhaps add a `use` for it: | 10 + use http_body_util::BodyExt; |
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L287
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:287:29 | 287 | let res = self.send(request.map(Body::from)).await?; | ^^^^^^^^^^^^^^^^^^^^^^^ 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 `std::convert::From` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:579:1
type mismatch in function arguments: kube-client/src/client/mod.rs#L287
error[E0631]: type mismatch in function arguments --> kube-client/src/client/mod.rs:287:41 | 287 | let res = self.send(request.map(Body::from)).await?; | --- ^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(std::vec::Vec<u8>) -> _` found function signature `fn(dyn http_body::Body) -> _` note: required by a bound in `http::Request::<T>::map` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/request.rs:691:12 | 689 | pub fn map<F, U>(self, f: F) -> Request<U> | --- required by a bound in this associated function 690 | where 691 | F: FnOnce(T) -> U, | ^^^^^^^^^^^^^^ required by this bound in `Request::<T>::map`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L287
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:287:41 | 287 | let res = self.send(request.map(Body::from)).await?; | ^^^^ 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 `std::convert::From::from` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:584:5
trait objects must include the `dyn` keyword: kube-client/src/client/mod.rs#L287
error[E0782]: trait objects must include the `dyn` keyword --> kube-client/src/client/mod.rs:287:41 | 287 | let res = self.send(request.map(Body::from)).await?; | ^^^^ | help: add `dyn` keyword before this trait | 287 | let res = self.send(request.map(<dyn Body>::from)).await?; | ++++ +
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified: kube-client/src/client/mod.rs#L287
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified --> kube-client/src/client/mod.rs:287:41 | 287 | let res = self.send(request.map(Body::from)).await?; | ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L230
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:230:41 | 230 | let res = self.send(request.map(Body::from)).await?; | ^^^^^^^^^^ 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
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L230
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:230:29 | 230 | let res = self.send(request.map(Body::from)).await?; | ^^^^^^^^^^^^^^^^^^^^^^^ 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 `std::convert::From` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:579:1
type mismatch in function arguments: kube-client/src/client/mod.rs#L230
error[E0631]: type mismatch in function arguments --> kube-client/src/client/mod.rs:230:41 | 230 | let res = self.send(request.map(Body::from)).await?; | --- ^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(std::vec::Vec<u8>) -> _` found function signature `fn(dyn http_body::Body) -> _` note: required by a bound in `http::Request::<T>::map` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/request.rs:691:12 | 689 | pub fn map<F, U>(self, f: F) -> Request<U> | --- required by a bound in this associated function 690 | where 691 | F: FnOnce(T) -> U, | ^^^^^^^^^^^^^^ required by this bound in `Request::<T>::map`
the size for values of type `dyn http_body::Body` cannot be known at compilation time: kube-client/src/client/mod.rs#L230
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time --> kube-client/src/client/mod.rs:230:41 | 230 | let res = self.send(request.map(Body::from)).await?; | ^^^^ 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 `std::convert::From::from` --> /rustc/3a85a5cfe7884f94e3cb29a606913d7989ad9b48/library/core/src/convert/mod.rs:584:5
trait objects must include the `dyn` keyword: kube-client/src/client/mod.rs#L230
error[E0782]: trait objects must include the `dyn` keyword --> kube-client/src/client/mod.rs:230:41 | 230 | let res = self.send(request.map(Body::from)).await?; | ^^^^ | help: add `dyn` keyword before this trait | 230 | let res = self.send(request.map(<dyn Body>::from)).await?; | ++++ +
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified: kube-client/src/client/mod.rs#L230
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified --> kube-client/src/client/mod.rs:230:41 | 230 | let res = self.send(request.map(Body::from)).await?; | ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
cannot find function `to_bytes` in module `hyper::body`: kube-client/src/client/mod.rs#L233
error[E0425]: cannot find function `to_bytes` in module `hyper::body` --> kube-client/src/client/mod.rs:233:39 | 233 | let body_bytes = hyper::body::to_bytes(res.into_body()) | ^^^^^^^^ not found in `hyper::body`
cannot find function `to_bytes` in module `body`: kube-client/src/client/auth/oidc.rs#L419
error[E0425]: cannot find function `to_bytes` in module `body` --> kube-client/src/client/auth/oidc.rs:419:26 | 419 | let body = body::to_bytes(response.into_body()).await?; | ^^^^^^^^ not found in `body`
cannot find function `to_bytes` in module `body`: kube-client/src/client/auth/oidc.rs#L331
error[E0425]: cannot find function `to_bytes` in module `body` --> kube-client/src/client/auth/oidc.rs:331:30 | 331 | let body = body::to_bytes(response.into_body()).await?; | ^^^^^^^^ not found in `body`
failed to resolve: could not find `Client` in `hyper`: kube-client/src/client/auth/oidc.rs#L307
error[E0433]: failed to resolve: could not find `Client` in `hyper` --> kube-client/src/client/auth/oidc.rs:307:35 | 307 | let https_client = hyper::Client::builder().build(https); | ^^^^^^ could not find `Client` in `hyper` | help: consider importing this struct through its public re-export | 1 + use crate::Client; | help: if you import `Client`, refer to it directly | 307 - let https_client = hyper::Client::builder().build(https); 307 + let https_client = Client::builder().build(https); |
cannot find function `to_bytes` in module `hyper::body`: kube-client/src/client/auth/oauth.rs#L131
error[E0425]: cannot find function `to_bytes` in module `hyper::body` --> kube-client/src/client/auth/oauth.rs:131:42 | 131 | let bytes = hyper::body::to_bytes(body).await.map_err(Error::ConcatBuffers)?; | ^^^^^^^^ not found in `hyper::body`
failed to resolve: could not find `Body` in `hyper`: kube-client/src/client/auth/oauth.rs#L126
error[E0433]: failed to resolve: could not find `Body` in `hyper` --> kube-client/src/client/auth/oauth.rs:126:49 | 126 | .request(request.map(hyper::Body::from)) | ^^^^ could not find `Body` in `hyper` | help: consider importing one of these items | 1 + use crate::client::Body; | 1 + use http_body::Body; | 1 + use hyper::body::Body; | help: if you import `Body`, refer to it directly | 126 - .request(request.map(hyper::Body::from)) 126 + .request(request.map(Body::from)) |
cannot find type `Body` in crate `hyper`: kube-client/src/client/auth/oauth.rs#L123
error[E0412]: cannot find type `Body` in crate `hyper` --> kube-client/src/client/auth/oauth.rs:123:73 | 123 | let client = hyper::Client::builder().build::<_, hyper::Body>(https); | ^^^^ not found in `hyper` | help: consider importing one of these items | 1 + use crate::client::Body; | 1 + use http_body::Body; | 1 + use hyper::body::Body; | help: if you import `Body`, refer to it directly | 123 - let client = hyper::Client::builder().build::<_, hyper::Body>(https); 123 + let client = hyper::Client::builder().build::<_, Body>(https); |
failed to resolve: could not find `Client` in `hyper`: kube-client/src/client/auth/oauth.rs#L123
error[E0433]: failed to resolve: could not find `Client` in `hyper` --> kube-client/src/client/auth/oauth.rs:123:37 | 123 | let client = hyper::Client::builder().build::<_, hyper::Body>(https); | ^^^^^^ could not find `Client` in `hyper` | help: consider importing this struct through its public re-export | 1 + use crate::Client; | help: if you import `Client`, refer to it directly | 123 - let client = hyper::Client::builder().build::<_, hyper::Body>(https); 123 + let client = Client::builder().build::<_, hyper::Body>(https); |
unresolved import `hyper::Body`: kube-client/src/client/upgrade.rs#L2
error[E0432]: unresolved import `hyper::Body` --> kube-client/src/client/upgrade.rs:2:5 | 2 | use hyper::Body; | ^^^^^^^^^^^ no `Body` in the root | help: a similar name exists in the module | 2 | use hyper::body; | ~~~~ help: consider importing one of these items instead | 2 | use crate::client::Body; | ~~~~~~~~~~~~~~~~~~~ 2 | use http_body::Body; | ~~~~~~~~~~~~~~~ 2 | use hyper::body::Body; | ~~~~~~~~~~~~~~~~~
unresolved imports `hyper::client::HttpConnector`, `hyper::Client`: kube-client/src/client/auth/oidc.rs#L9
error[E0432]: unresolved imports `hyper::client::HttpConnector`, `hyper::Client` --> kube-client/src/client/auth/oidc.rs:9:19 | 9 | use hyper::{body, client::HttpConnector, http::Uri, Client, Request}; | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ | | | | | no `Client` in the root | | help: a similar name exists in the module (notice the capitalization): `client` | no `HttpConnector` in `client` | = help: consider importing this struct instead: hyper_util::client::legacy::connect::HttpConnector = help: consider importing one of these items instead: crate::Client crate::client::ws::protocol::Role::Client rustls::Connection::Client rustls::Side::Client
clippy_nightly
Clippy had exited with the 101 exit code
unused import: `TryStreamExt`: kube-client/src/client/mod.rs#L11
warning: unused import: `TryStreamExt` --> kube-client/src/client/mod.rs:11:57 | 11 | use futures::{self, AsyncBufRead, StreamExt, TryStream, TryStreamExt}; | ^^^^^^^^^^^^
unused import: `StreamExt`: kube-client/src/client/mod.rs#L11
warning: unused import: `StreamExt` --> kube-client/src/client/mod.rs:11:35 | 11 | use futures::{self, AsyncBufRead, StreamExt, TryStream, TryStreamExt}; | ^^^^^^^^^
unused import: `kube_core::response::Status`: kube-client/src/client/builder.rs#L11
warning: unused import: `kube_core::response::Status` --> kube-client/src/client/builder.rs:11:9 | 11 | pub use kube_core::response::Status; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `hyper_tls::HttpsConnector`: kube-client/src/client/builder.rs#L9
warning: unused import: `hyper_tls::HttpsConnector` --> kube-client/src/client/builder.rs:9:5 | 9 | use hyper_tls::HttpsConnector; | ^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `Connection`: kube-client/src/client/builder.rs#L6
warning: unused import: `Connection` --> kube-client/src/client/builder.rs:6:52 | 6 | client::conn::http1::{Builder as HyperBuilder, Connection}, | ^^^^^^^^^^
unused imports: `StreamBody`, `combinators::BoxBody`: kube-client/src/client/builder.rs#L3
warning: unused imports: `StreamBody`, `combinators::BoxBody` --> kube-client/src/client/builder.rs:3:22 | 3 | use http_body_util::{combinators::BoxBody, BodyExt, StreamBody}; | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^
unused imports: `Scope`, `verbs`: kube-client/src/discovery/apigroup.rs#L4
warning: unused imports: `Scope`, `verbs` --> kube-client/src/discovery/apigroup.rs:4:32 | 4 | pub use kube_core::discovery::{verbs, ApiCapabilities, ApiResource, Scope}; | ^^^^^ ^^^^^ | = note: `#[warn(unused_imports)]` on by default
clippy_nightly
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/