diff --git a/src/main.rs b/src/main.rs index ea242ed..82d616d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -156,9 +156,7 @@ async fn main() { origin_store, domain_config_store, domain_checker, - https_params - .as_ref() - .and_then(|p| Some(p.domain_acme_manager.clone())), + https_params.as_ref().map(|p| p.domain_acme_manager.clone()), ); wait_group.push({ @@ -296,7 +294,7 @@ async fn main() { // HTTPS server wait_group.push({ - let https_params = https_params.clone(); + let https_params = https_params; let http_domain = config.http_domain.clone(); let canceller = canceller.clone(); let service = service.clone(); diff --git a/src/service.rs b/src/service.rs index f731c0f..ab5c9ba 100644 --- a/src/service.rs +++ b/src/service.rs @@ -316,7 +316,7 @@ where domains.sort(); - self.render_page("/domains.html", Response { domains: domains }) + self.render_page("/domains.html", Response { domains }) } }