Skip to content

Commit

Permalink
Remove redundant into_iter call in iced_wgpu
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 2, 2023
1 parent 020fb3c commit 0b28080
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions wgpu/src/window/compositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,10 @@ impl<Theme> Compositor<Theme> {
let limits =
[wgpu::Limits::default(), wgpu::Limits::downlevel_defaults()];

let mut limits = limits
.into_iter()
.map(|limits| wgpu::Limits {
max_bind_groups: 2,
..limits
})
.into_iter();
let mut limits = limits.into_iter().map(|limits| wgpu::Limits {
max_bind_groups: 2,
..limits
});

let (device, queue) = loop {

Check failure on line 101 in wgpu/src/window/compositor.rs

View workflow job for this annotation

GitHub Actions / all

this loop never actually loops
if let Some(limits) = limits.next() {
Expand Down

0 comments on commit 0b28080

Please sign in to comment.