Strings have to be cloned

This commit is contained in:
Ana Gelez
2019-07-31 09:31:58 +02:00
committed by Igor Galić
parent 2dedcdbc53
commit fdc7da0edf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ pub fn create(form: LenientForm<NewBlogForm>, rockets: PlumeRocket) -> RespondOr
let custom_domain = if *(&form.custom_domain.is_empty()) {
None
} else {
Some(Host::new(*(&form.custom_domain)))
Some(Host::new(form.custom_domain.clone()))
};
let mut errors = match form.validate() {