Skip to content

Commit

Permalink
Dedupe list of valid bins
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed May 27, 2023
1 parent 7a2ecb8 commit 8fdd1f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/camera-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ async fn main() -> eyre::Result<std::convert::Infallible> {
.collect::<Vec<_>>();

valid_bins.sort_unstable();
valid_bins.dedup();

let camera = nokhwa::Camera::new(
camera_info.index().clone(),
Expand Down

0 comments on commit 8fdd1f8

Please sign in to comment.