diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2023-05-21 17:13:07 +0200 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2023-05-21 17:13:07 +0200 |
| commit | afcdd26dbf918eec194e7344be72c6cb65faf0b1 (patch) | |
| tree | 9f139c8dc934d06df1c153b8301f40fb8f8132d2 /src/main.rs | |
| parent | aa191707ba93ee1b0790be89dcb274864ffe884f (diff) | |
Add 'Wege zum Tod' + Fix not being able to add new story due to HTML last modification detection expecting it
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(()) } |
