From 5cb90c8a03e61a4419f08b9a84c127921691b9ed Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 31 Jul 2026 16:04:41 +0200 Subject: style: rustfmt field alignment in RuntimeServices --- rsnix/src/uefi.rs | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/rsnix/src/uefi.rs b/rsnix/src/uefi.rs index b1b5e48..f947c90 100644 --- a/rsnix/src/uefi.rs +++ b/rsnix/src/uefi.rs @@ -91,8 +91,7 @@ pub struct SimpleTextInput { /// `EFI_RESET_SYSTEM` — ResetType, ResetStatus, DataSize, ResetData. /// ResetType: 0 cold, 1 warm, 2 shutdown, 3 platform-specific. -pub type EfiResetSystem = - unsafe extern "efiapi" fn(u32, u64, usize, *const u16) -> Status; +pub type EfiResetSystem = unsafe extern "efiapi" fn(u32, u64, usize, *const u16) -> Status; pub const RESET_COLD: u32 = 0; #[allow(dead_code)] @@ -108,20 +107,20 @@ pub const RESET_PLATFORM_SPECIFIC: u32 = 3; #[repr(C)] pub struct RuntimeServices { _hdr: TableHeader, - _get_time: *mut c_void, // 0 - _set_time: *mut c_void, // 1 - _get_wakeup_time: *mut c_void, // 2 - _set_wakeup_time: *mut c_void, // 3 - _set_virtual_address_map: *mut c_void, // 4 - _convert_pointer: *mut c_void, // 5 - _get_variable: *mut c_void, // 6 - _get_next_variable_name: *mut c_void, // 7 - _set_variable: *mut c_void, // 8 + _get_time: *mut c_void, // 0 + _set_time: *mut c_void, // 1 + _get_wakeup_time: *mut c_void, // 2 + _set_wakeup_time: *mut c_void, // 3 + _set_virtual_address_map: *mut c_void, // 4 + _convert_pointer: *mut c_void, // 5 + _get_variable: *mut c_void, // 6 + _get_next_variable_name: *mut c_void, // 7 + _set_variable: *mut c_void, // 8 _get_next_high_monotonic_count: *mut c_void, // 9 - pub reset_system: EfiResetSystem, // 10 - _update_capsule: *mut c_void, // 11 - _query_capsule_capabilities: *mut c_void, // 12 - _query_variable_info: *mut c_void, // 13 + pub reset_system: EfiResetSystem, // 10 + _update_capsule: *mut c_void, // 11 + _query_capsule_capabilities: *mut c_void, // 12 + _query_variable_info: *mut c_void, // 13 } // --------------------------------------------------------------------------- -- cgit v1.2.3