Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 05d2ddb

Browse files
committed
uefi: simplify return type of GraphicsOutput::modes
1 parent 1aaf5ac commit 05d2ddb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
`impl Iterator` which simplifies usage.
2828
- `BootServices::exit_boot_services()` now returns `MemoryMapIter` instead of
2929
`impl Iterator` which simplifies usage.
30+
- `GraphicsOutput::modes()` now returns `ModesIter` instead of `impl Iterator`
31+
which simplifies usage.
3032

3133
### Removed
3234

‎uefi/src/proto/console/gop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<'boot> GraphicsOutput<'boot> {
109109

110110
/// Returns information about all available graphics modes.
111111
#[must_use]
112-
pub fn modes(&'_self) -> implExactSizeIterator<Item = Mode> + '_ {
112+
pub fn modes(&self) -> ModeIter {
113113
ModeIter {
114114
gop: self,
115115
current: 0,
@@ -438,7 +438,7 @@ impl ModeInfo {
438438
}
439439

440440
/// Iterator for graphics modes.
441-
struct ModeIter<'gop> {
441+
pubstruct ModeIter<'gop> {
442442
gop: &'gop GraphicsOutput<'gop>,
443443
current: u32,
444444
max: u32,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /