chore: Add Clone impl for ClientBuilder

This commit is contained in:
Jonas Platte
2022-06-17 12:43:23 +02:00
committed by Jonas Platte
parent 00a20f325b
commit 8690addfd5
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -58,7 +58,7 @@ use crate::{
/// # anyhow::Ok(())
/// ```
#[must_use]
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct ClientBuilder {
homeserver_cfg: Option<HomeserverConfig>,
http_cfg: Option<HttpConfig>,
@@ -352,13 +352,13 @@ fn homeserver_from_name(server_name: &ServerName) -> String {
return format!("http://{}", server_name);
}
#[derive(Debug)]
#[derive(Clone, Debug)]
enum HomeserverConfig {
Url(String),
ServerName(OwnedServerName),
}
#[derive(Debug)]
#[derive(Clone, Debug)]
enum HttpConfig {
Settings(HttpSettings),
Custom(Arc<dyn HttpSend>),
+1 -1
View File
@@ -169,7 +169,7 @@ impl HttpClient {
}
}
#[derive(Debug)]
#[derive(Clone, Debug)]
pub(crate) struct HttpSettings {
#[cfg(not(target_arch = "wasm32"))]
pub(crate) disable_ssl_verification: bool,