Skip to content

Commit

Permalink
chore(http-client): add #[derive(Clone)] for HttpClientBuilder (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
koushiro authored Dec 1, 2024
1 parent 426a832 commit 14dc823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/http-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ use crate::{CertificateStore, CustomCertStore};
/// // use client....
/// }
/// ```
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct HttpClientBuilder<L = Identity> {
max_request_size: u32,
max_response_size: u32,
Expand Down
2 changes: 1 addition & 1 deletion client/http-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 14dc823

Please sign in to comment.