Skip to content

Commit

Permalink
style: Remove redundant closure
Browse files Browse the repository at this point in the history
  • Loading branch information
danik-tro committed Jan 10, 2025
1 parent cf8e76d commit 2e731ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rig-core/src/loaders/epub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl<'a> EpubFileLoader<'a, EpubDoc<BufReader<File>>> {
/// ```
pub fn by_chapter(self) -> EpubFileLoader<'a, String> {
EpubFileLoader {
iterator: Box::new(self.iterator.flat_map(|doc| EpubChapterIterator::from(doc))),
iterator: Box::new(self.iterator.flat_map(EpubChapterIterator::from)),
}
}
}
Expand Down

0 comments on commit 2e731ef

Please sign in to comment.