diff options
Diffstat (limited to 'src/controllers/posts_controller.rs')
-rw-r--r-- | src/controllers/posts_controller.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controllers/posts_controller.rs b/src/controllers/posts_controller.rs index 7cc3849..7e819b5 100644 --- a/src/controllers/posts_controller.rs +++ b/src/controllers/posts_controller.rs @@ -38,7 +38,7 @@ fn create(post: Form<NewPost>, conn: DbConn) -> Flash<Redirect> { Flash::success(Redirect::to("/"), "Post successfully created!") } -#[derive(BartDisplay, Serialize)] +#[derive(BartDisplay)] #[template = "templates/show_post.html"] pub struct ShowPostTemplate { pub post: Post |