summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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(())
}