mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 19:52:22 +00:00
chore(deps): bump rust to 1.98.1, bump all images, and dependencies (#97)
This commit is contained in:
13 files changed
+54
-64
No files matched your search
@@ -48,11 +48,11 @@ fn read(input: &mut Input, timeout: &Duration) -> Result<MenuOperation> {
|
||||
let trigger = TimerTrigger::Relative(*timeout);
|
||||
uefi::boot::set_timer(&timer_event, trigger).context("unable to set timeout timer")?;
|
||||
|
||||
let mut events = vec![timer_event, key_event];
|
||||
let events = vec![timer_event, key_event];
|
||||
|
||||
// Wait for either the timer event or the key event to trigger.
|
||||
// Store the result so that we can free the timer event.
|
||||
let event_result = uefi::boot::wait_for_event(&mut events)
|
||||
let event_result = uefi::boot::wait_for_event(&events)
|
||||
.discard_errdata()
|
||||
.context("unable to wait for event");
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@ pub fn utf16_bytes_to_cstring16(bytes: &[u8]) -> Result<CString16> {
|
||||
// Convert the bytes to UTF-16 data.
|
||||
let data = bytes
|
||||
// Chunk everything into two bytes.
|
||||
.chunks_exact(2)
|
||||
.as_chunks::<2>()
|
||||
.0
|
||||
.iter()
|
||||
// Reinterpret the bytes as u16 little-endian.
|
||||
.map(|chunk| u16::from_le_bytes([chunk[0], chunk[1]]))
|
||||
// Collect the result into a vector.
|
||||
|
||||
Reference in new issue
Block a user