File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ pub fn system_table() -> NonNull<SystemTable<Boot>> {
7878///
7979/// This must be called as early as possible,
8080/// before trying to use logging or memory allocation capabilities.
81- pub fn init ( st : & mut SystemTable < Boot > ) -> Result {
81+ pub fn init ( st : & mut SystemTable < Boot > ) -> Result < Option < Event > > {
8282 unsafe {
8383 // Avoid double initialization.
8484 if SYSTEM_TABLE . is_some ( ) {
85- return Status :: SUCCESS . to_result ( ) ;
85+ return Status :: SUCCESS . to_result_with_val ( || None ) ;
8686 }
8787
8888 // Setup the system table singleton
@@ -104,7 +104,7 @@ pub fn init(st: &mut SystemTable<Boot>) -> Result {
104104 Some ( exit_boot_services) ,
105105 None ,
106106 )
107- . map ( |_| ( ) )
107+ . map ( Some )
108108 }
109109}
110110
You can’t perform that action at this time.
0 commit comments