From 14dc823f383981c8ae00b00242cc9efdd57a95c4 Mon Sep 17 00:00:00 2001 From: Qinxuan Chen Date: Mon, 2 Dec 2024 02:33:11 +0800 Subject: [PATCH] chore(http-client): add #[derive(Clone)] for HttpClientBuilder (#1498) --- client/http-client/src/client.rs | 2 +- client/http-client/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/http-client/src/client.rs b/client/http-client/src/client.rs index ccbf6408e0..52a9a8ca21 100644 --- a/client/http-client/src/client.rs +++ b/client/http-client/src/client.rs @@ -74,7 +74,7 @@ use crate::{CertificateStore, CustomCertStore}; /// // use client.... /// } /// ``` -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct HttpClientBuilder { max_request_size: u32, max_response_size: u32, diff --git a/client/http-client/src/lib.rs b/client/http-client/src/lib.rs index 82ee7e1c89..27138106fb 100644 --- a/client/http-client/src/lib.rs +++ b/client/http-client/src/lib.rs @@ -62,7 +62,7 @@ pub type CustomCertStore = rustls::ClientConfig; #[cfg(feature = "tls")] // rustls needs the concrete `ClientConfig` type so we can't Box it here. #[allow(clippy::large_enum_variant)] -#[derive(Debug)] +#[derive(Clone, Debug)] pub(crate) enum CertificateStore { Native, Custom(CustomCertStore),