From 60270121dc466d3b451cfff52805e35729ac692e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Gali=C4=87?= Date: Wed, 31 Jul 2019 12:31:58 +0200 Subject: [PATCH] fix clippy warning Co-Authored-By: fdb-hiroshima <35889323+fdb-hiroshima@users.noreply.github.com> --- src/routes/blogs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/blogs.rs b/src/routes/blogs.rs index 632138da..dff68b26 100644 --- a/src/routes/blogs.rs +++ b/src/routes/blogs.rs @@ -155,7 +155,7 @@ pub fn create(form: LenientForm, rockets: PlumeRocket) -> RespondOr let intl = &rockets.intl.catalog; let user = rockets.user.clone().unwrap(); - let custom_domain = if *(&form.custom_domain.is_empty()) { + let custom_domain = if form.custom_domain.is_empty() { None } else { Some(Host::new(form.custom_domain.clone()))