Skip to content

Commit 9090f9e

Browse files
authored
Merge pull request #1391 from nicholasbishop/bishop-helper-init-doc
uefi: Add panic doc to uefi::helpers::init
2 parents f7ffd27 + 1cc3189 commit 9090f9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

uefi/src/helpers/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ pub fn system_table() -> SystemTable<Boot> {
5555
/// **PLEASE NOTE** that these helpers are meant for the pre exit boot service
5656
/// epoch. Limited functionality might work after exiting them, such as logging
5757
/// to the debugcon device.
58+
///
59+
/// # Panics
60+
///
61+
/// This function may panic if called more than once.
5862
#[allow(clippy::missing_const_for_fn)]
5963
pub fn init() -> Result<()> {
6064
// Set up logging.

0 commit comments

Comments
 (0)