Skip to content

Commit c563108

Browse files
committed
multiboot2: BootInformation::tags iterator is now public
1 parent 93cec3c commit c563108

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

multiboot2/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- `ApmTag`
99
- `BootdevTag`
1010
- `NetworkTag`
11+
- `BootInformation::tags` iterator is now public
1112

1213
## v0.22.2 (2024-08-24)
1314

multiboot2/src/boot_information.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,11 @@ impl<'a> BootInformation<'a> {
403403
}
404404

405405
/// Returns an iterator over all tags.
406-
pub(crate) fn tags(&self) -> TagIter {
406+
///
407+
/// This is public to enable users to iterate over tags that appear multiple
408+
/// times, even tho this is unusual. However, it is recommended to use the
409+
/// tag getters as normal bootloaders provide most tags only once.
410+
pub fn tags(&self) -> TagIter {
407411
TagIter::new(self.0.payload())
408412
}
409413
}

0 commit comments

Comments
 (0)