From afcdd26dbf918eec194e7344be72c6cb65faf0b1 Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Sun, 21 May 2023 17:13:07 +0200 Subject: Add 'Wege zum Tod' + Fix not being able to add new story due to HTML last modification detection expecting it --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 871c57e..26c3794 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,10 +16,10 @@ fn main() -> Result<()> { // render stories.html file let stories = std::rc::Rc::new(works::stories::Stories::new_from_file( - std::fs::File::open(std::path::PathBuf::from("stories.json"))?, + &std::fs::File::open(std::path::PathBuf::from("stories.json"))?, )?); std::rc::Rc::clone(&stories).render_overview_page(&tera, "stories")?; std::rc::Rc::clone(&stories).render_single_pages(&tera, "story")?; - Ok(()) + anyhow::Ok(()) } -- cgit v1.2.3