Skip to content

Commit 8daafde

Browse files
authored
chore(proxy/identity-client): remove Default bounds (#3653)
linkerd/linkerd2#8733 for more information. see also, #3651 for another related pull request. in hyper 1.x, `Incoming` bodies do not provide a `Default` implementation. compare the trait implementations here: * https://docs.rs/hyper/0.14.31/hyper/body/struct.Body.html#impl-Default-for-Body * https://docs.rs/hyper/latest/hyper/body/struct.Incoming.html#trait-implementations this commit removes these bounds from `linkerd_proxy_identity_client::Certify<C, S>`. Signed-off-by: katelyn martin <[email protected]>
1 parent 9aca7b6 commit 8daafde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linkerd/proxy/identity-client/src/certify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl Certify {
9393
C: Credentials,
9494
N: NewService<(), Service = S>,
9595
S: GrpcService<BoxBody>,
96-
S::ResponseBody: Default + Body<Data = tonic::codegen::Bytes> + Send + 'static,
96+
S::ResponseBody: Body<Data = tonic::codegen::Bytes> + Send + 'static,
9797
<S::ResponseBody as Body>::Error: Into<Error> + Send,
9898
{
9999
debug!("Identity daemon running");
@@ -155,7 +155,7 @@ async fn certify<C, S>(
155155
where
156156
C: Credentials,
157157
S: GrpcService<BoxBody>,
158-
S::ResponseBody: Default + Body<Data = tonic::codegen::Bytes> + Send + 'static,
158+
S::ResponseBody: Body<Data = tonic::codegen::Bytes> + Send + 'static,
159159
<S::ResponseBody as Body>::Error: Into<Error> + Send,
160160
{
161161
let req = tonic::Request::new(api::CertifyRequest {

0 commit comments

Comments
 (0)