fix clippy warning

Co-Authored-By: fdb-hiroshima <35889323+fdb-hiroshima@users.noreply.github.com>
This commit is contained in:
Igor Galić 2019-07-31 12:31:58 +02:00 committed by Igor Galić
parent fdc7da0edf
commit 60270121dc
No known key found for this signature in database
GPG Key ID: ACFEFF7F6A123A86

View File

@ -155,7 +155,7 @@ pub fn create(form: LenientForm<NewBlogForm>, rockets: PlumeRocket) -> RespondOr
let intl = &rockets.intl.catalog; let intl = &rockets.intl.catalog;
let user = rockets.user.clone().unwrap(); 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 None
} else { } else {
Some(Host::new(form.custom_domain.clone())) Some(Host::new(form.custom_domain.clone()))