diff --git a/uefi/src/proto/console/text/input.rs b/uefi/src/proto/console/text/input.rs index ca594bd5c..cd44bacdb 100644 --- a/uefi/src/proto/console/text/input.rs +++ b/uefi/src/proto/console/text/input.rs @@ -48,7 +48,7 @@ impl Input { /// fn read_keyboard_events(input: &mut Input) -> Result { /// loop { /// // Pause until a keyboard event occurs. - /// let mut events = unsafe { [input.wait_for_key_event().unwrap()] }; + /// let mut events = [input.wait_for_key_event().unwrap()]; /// boot::wait_for_event(&mut events).discard_errdata()?; /// /// let u_key = Char16::try_from('u').unwrap();