Format code
This commit is contained in:
parent
7bb8a99b56
commit
ef93327e6b
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Add table
Reference in a new issue