From 42a033a50ba75145c7d9af4303310f5ea9c29456 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Jun 2023 21:36:12 +0200 Subject: [PATCH] Fixes from clippy --- src/main.rs | 6 ++---- src/service.rs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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 }) } }