Skip to content

Commit 81ffe7e

Browse files
committed
uefi: make BootServices::allocation_size_hint private
There is no longer a reason to expose this. This just complicates the interface and is confusing if kept public.
1 parent b9bc552 commit 81ffe7e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

uefi/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
returned type is automatically freed on the UEFI heap, as long as boot
3636
services are not excited. By removing the need for that explicit buffer and
3737
the lifetime, the API is simpler.
38+
- `BootServices::allocation_size_hint` is now private. Use `BootServices::get_memory_map` instead.
3839

3940
## Removed
4041
- Removed the `panic-on-logger-errors` feature of the `uefi` crate. Logger

uefi/src/table/boot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ impl MemoryMapBackingMemory {
17091709
/// Returns a best-effort size hint of the memory map size. This is
17101710
/// especially created with exiting boot services in mind.
17111711
#[must_use]
1712-
pub fn allocation_size_hint(mms: MemoryMapMeta) -> usize {
1712+
fn allocation_size_hint(mms: MemoryMapMeta) -> usize {
17131713
let MemoryMapMeta {
17141714
desc_size,
17151715
map_size,

0 commit comments

Comments
 (0)