Skip to content

Commit

Permalink
refactor: prefer using into_iter
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 16, 2024
1 parent fb84947 commit b9c2c9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/framerate_option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ impl FramerateOption {
let epsilon = Framerate::new_raw(1, 100);

Self::all_except_other()
.iter()
.into_iter()
.find(|o| (o.as_framerate() - framerate).abs() < epsilon)
.copied()
.unwrap_or(Self::Other(framerate))
}

Expand Down

0 comments on commit b9c2c9b

Please sign in to comment.