Skip to content
Snippets Groups Projects
Commit 2ff37a88 authored by Jonathan Schwender's avatar Jonathan Schwender Committed by Stefan Lankes
Browse files

Fix return type of ! functions


Remove `;` to remove warning

Signed-off-by: default avatarJonathan Schwender <schwenderjonathan@gmail.com>
parent 386ee525
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,5 @@ pub unsafe fn boot_kernel(virtual_address: u64, mem_size: u64, entry_point: u64) ...@@ -55,6 +55,5 @@ pub unsafe fn boot_kernel(virtual_address: u64, mem_size: u64, entry_point: u64)
let func: extern "C" fn(boot_info: &'static mut BootInfo) -> ! = let func: extern "C" fn(boot_info: &'static mut BootInfo) -> ! =
core::mem::transmute(entry_point); core::mem::transmute(entry_point);
func(&mut BOOT_INFO)
func(&mut BOOT_INFO);
} }
...@@ -42,5 +42,5 @@ pub unsafe extern "C" fn loader_main() -> ! { ...@@ -42,5 +42,5 @@ pub unsafe extern "C" fn loader_main() -> ! {
let (kernel_location, entry_point) = load_kernel(&elf, app.as_ptr() as u64, mem_size); let (kernel_location, entry_point) = load_kernel(&elf, app.as_ptr() as u64, mem_size);
// boot kernel // boot kernel
arch::boot_kernel(kernel_location, mem_size, entry_point); arch::boot_kernel(kernel_location, mem_size, entry_point)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment