directly use SafeString in InstanceSettingsForm

This commit is contained in:
Igor Galić
2018-09-14 20:25:16 +02:00
parent d62c72dde0
commit 06718a5c8a
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ impl Instance {
))
}
pub fn update(&self, conn: &PgConnection, name: String, open_registrations: bool, short_description: String, long_description: String) -> Instance {
pub fn update(&self, conn: &PgConnection, name: String, open_registrations: bool, short_description: SafeString, long_description: SafeString) -> Instance {
let (sd, _) = md_to_html(short_description.as_ref());
let (ld, _) = md_to_html(long_description.as_ref());
diesel::update(self)