diff options
Diffstat (limited to 'src/works/stories.rs')
| -rw-r--r-- | src/works/stories.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/works/stories.rs b/src/works/stories.rs index f86d24a..2623db6 100644 --- a/src/works/stories.rs +++ b/src/works/stories.rs @@ -24,10 +24,10 @@ struct Story { impl super::Works for Stories { // render single pages for every story with the extracted text and a download button fn render_single_pages( - &self, + self, tera_instance: &tera::Tera, template_name: &str, - ) -> Result<()> { + ) -> Result<Self> { let mut result = Vec::new(); for story in self.0.iter() { if story.update_available().with_context(|| format!("Failed to check for update for {}", story.title))? { @@ -40,7 +40,7 @@ impl super::Works for Stories { )); } } - Ok(()) + Ok(self) } // create stories from stories.json and add last modification date |
