Skip to content

Commit

Permalink
fix(common-os): clippy::result_unit_err
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 20, 2024
1 parent 0a0565a commit 6578826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/x86_64/kernel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ const LOADER_START: usize = 0x0100_0000_0000;
const LOADER_STACK_SIZE: usize = 0x8000;

#[cfg(feature = "common-os")]
pub fn load_application<F>(code_size: u64, tls_size: u64, func: F) -> Result<(), ()>
pub fn load_application<F, T>(code_size: u64, tls_size: u64, func: F) -> T
where
F: FnOnce(&'static mut [u8], Option<&'static mut [u8]>) -> Result<(), ()>,
F: FnOnce(&'static mut [u8], Option<&'static mut [u8]>) -> T,
{
use core::ptr::slice_from_raw_parts_mut;

Expand Down

0 comments on commit 6578826

Please sign in to comment.