aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/controllers/home_controller.rs2
-rw-r--r--src/controllers/posts_controller.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/controllers/home_controller.rs b/src/controllers/home_controller.rs
index 6cfa736..fb88d07 100644
--- a/src/controllers/home_controller.rs
+++ b/src/controllers/home_controller.rs
@@ -12,7 +12,7 @@ use rocket_contrib::Json;
use std::path::PathBuf;
use posts_controller::ShowPostTemplate;
-#[derive(BartDisplay, Serialize)]
+#[derive(BartDisplay)]
#[template = "templates/index.html"]
struct IndexTemplate {
posts: Vec<ShowPostTemplate>
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