Format code

This commit is contained in:
Arthur Beck 2025-02-21 06:46:21 -06:00
parent 7bb8a99b56
commit ef93327e6b
Signed by: ArthurB
GPG key ID: ACE3D14F5CEF14BF
2 changed files with 7 additions and 3 deletions

View file

@ -40,7 +40,9 @@ fn main() {
println!(r#"cargo:rustc-check-cfg=cfg(CONFIG_BUILD_GRUB, values("true", "false", none()))"#);
println!(r#"cargo:rustc-check-cfg=cfg(CONFIG_MEMORY_UNION_ALL, values("true", "false", none()))"#);
println!(
r#"cargo:rustc-check-cfg=cfg(CONFIG_MEMORY_UNION_ALL, values("true", "false", none()))"#
);
// End checks
// Configuration name used when a config is required but should always evaluate to true

View file

@ -85,7 +85,9 @@ fn get_allocator() -> Option<&'static MemoryMapAlloc<'static>> {
/// undefined behavior; check [MaybeUninit::assume_init_ref] for safety guarantees.
pub unsafe fn get_allocator_unchecked() -> &'static MemoryMapAlloc<'static> {
#[allow(static_mut_refs)]
unsafe { ALLOCATOR.assume_init_ref() }
unsafe {
ALLOCATOR.assume_init_ref()
}
}
#[kernel_item(MemMapAllocInit)]