Skip to content

Commit a9788a3

Browse files
uefi: Fix unsafe_op_in_unsafe_fn in logger module
1 parent f76989b commit a9788a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uefi/src/helpers/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static LOGGER: Logger = Logger::new();
2929
/// disable() on exit from UEFI boot services.
3030
pub unsafe fn init() {
3131
// Connect the logger to stdout.
32-
system::with_stdout(|stdout| {
32+
system::with_stdout(|stdout| unsafe {
3333
LOGGER.set_output(stdout);
3434
});
3535

0 commit comments

Comments
 (0)