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/works/mod.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/works/mod.rs')
| -rw-r--r-- | src/works/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/works/mod.rs b/src/works/mod.rs index 989f337..cb82168 100644 --- a/src/works/mod.rs +++ b/src/works/mod.rs @@ -7,8 +7,8 @@ pub mod stories; pub trait Works: for<'a> Deserialize<'a> + Serialize { // create works from the corresponding JSON file, // e.g. stories from stories.json - fn new_from_file(file: std::fs::File) -> Result<Self> { - serde_json::from_reader(std::io::BufReader::new(&file)) + fn new_from_file(file: &std::fs::File) -> Result<Self> { + serde_json::from_reader(std::io::BufReader::new(file)) // add error context .with_context(|| format!("Failed to create works from {:?}", &file)) } |
