Skip to content

Commit ca8737a

Browse files
BrokenC1oudphip1611
authored andcommitted
Remove unnecessary unsafe block
1 parent ab85092 commit ca8737a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uefi/src/proto/console/text/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Input {
4848
/// fn read_keyboard_events(input: &mut Input) -> Result {
4949
/// loop {
5050
/// // Pause until a keyboard event occurs.
51-
/// let mut events = unsafe { [input.wait_for_key_event().unwrap()] };
51+
/// let mut events = [input.wait_for_key_event().unwrap()];
5252
/// boot::wait_for_event(&mut events).discard_errdata()?;
5353
///
5454
/// let u_key = Char16::try_from('u').unwrap();

0 commit comments

Comments
 (0)