Strings have to be cloned
This commit is contained in:
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user