chore: Add Clone impl for ClientBuilder
This commit is contained in:
committed by
Jonas Platte
parent
00a20f325b
commit
8690addfd5
@@ -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>),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user