Skip to content

Commit

Permalink
Merge pull request #628 from Stremio/fix/nighlty-clippy-warning
Browse files Browse the repository at this point in the history
fix(MetaItem): clippy warning for videos_iter return impl type
  • Loading branch information
elpiel authored Jan 24, 2024
2 parents 80a06b6 + 11e2127 commit 324ed76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/resource/meta_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub struct MetaItem {

impl MetaItem {
/// Returns an iterator over references to Video, skipping special episodes, sorted by released and series_info, oldest first
pub fn videos_iter(&self) -> impl Iterator<Item = &Video> + DoubleEndedIterator {
pub fn videos_iter(&self) -> impl DoubleEndedIterator<Item = &Video> {
if self.preview.r#type == "series" {
Either::Left(self.videos.iter().filter(|video| match video.series_info {
Some(SeriesInfo { season, .. }) => season != 0,
Expand Down

0 comments on commit 324ed76

Please sign in to comment.