mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-16 06:12:55 +00:00
No "first()" method on Iterator
As far as I can tell looking at the docs, there is no "first" method for the Iterator trait, but I believe "next" accomplishes getting the first item in this instance.
This commit is contained in:
parent
1181245916
commit
bb32dbdb52
@ -80,7 +80,7 @@ let adapter = instance
|
|||||||
// Check if this adapter supports our surface
|
// Check if this adapter supports our surface
|
||||||
surface.get_preferred_format(&adapter).is_some()
|
surface.get_preferred_format(&adapter).is_some()
|
||||||
})
|
})
|
||||||
.first()
|
.next()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user