Remove redundant into_iter call in iced_wgpu
This commit is contained in:
parent
020fb3c377
commit
0b28080d3e
1 changed files with 4 additions and 7 deletions
|
|
@ -93,13 +93,10 @@ impl<Theme> Compositor<Theme> {
|
||||||
let limits =
|
let limits =
|
||||||
[wgpu::Limits::default(), wgpu::Limits::downlevel_defaults()];
|
[wgpu::Limits::default(), wgpu::Limits::downlevel_defaults()];
|
||||||
|
|
||||||
let mut limits = limits
|
let mut limits = limits.into_iter().map(|limits| wgpu::Limits {
|
||||||
.into_iter()
|
max_bind_groups: 2,
|
||||||
.map(|limits| wgpu::Limits {
|
..limits
|
||||||
max_bind_groups: 2,
|
});
|
||||||
..limits
|
|
||||||
})
|
|
||||||
.into_iter();
|
|
||||||
|
|
||||||
let (device, queue) = loop {
|
let (device, queue) = loop {
|
||||||
if let Some(limits) = limits.next() {
|
if let Some(limits) = limits.next() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue