Remove some unused #[derive] (#473)

We used to need them, probably when we were using Tera.
This commit is contained in:
Baptiste Gelez
2019-03-12 19:40:54 +01:00
committed by GitHub
parent 6405bd7261
commit 42dca3daae
24 changed files with 23 additions and 37 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ pub fn update(blog: String, slug: String, user: User, cl: ContentLen, form: Leni
}
}
#[derive(Default, FromForm, Validate, Serialize)]
#[derive(Default, FromForm, Validate)]
pub struct NewPostForm {
#[validate(custom(function = "valid_slug", message = "Invalid title"))]
pub title: String,