Remove redundant into_iter call in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2023-09-03 01:05:17 +02:00
parent 020fb3c377
commit 0b28080d3e
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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 {
if let Some(limits) = limits.next() {