Skip to content

Commit

Permalink
Address clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Jan 8, 2024
1 parent 48d94ae commit 124740a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ use server::Server;
const HTTP_PORT: u16 = 80;
const HTTPS_PORT: u16 = 443;

#[allow(clippy::too_many_arguments)] // TODO
pub async fn run_server<
T: BlockIO<ReadOnly, BlockSize = constant_block_sizes::BlockSize512> + Clone + 'static,
>(
Expand Down
2 changes: 1 addition & 1 deletion crates/sel4-async/single-threaded-executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn run_executor_until_stalled<T, F: FnMut(&mut Context<'_>) -> Poll<T>>(mut f: F

let current_thread_notify = CURRENT_THREAD_NOTIFY.get_or_init(|| Arc::new(ThreadNotify::new()));

let waker = waker_ref(&current_thread_notify);
let waker = waker_ref(current_thread_notify);
let mut cx = Context::from_waker(&waker);
loop {
if let Poll::Ready(t) = f(&mut cx) {
Expand Down
1 change: 1 addition & 0 deletions crates/sel4-kernel-loader/src/this_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub(crate) mod stacks {

static SECONDARY_STACKS: Stack<SECONDARY_STACKS_SIZE> = Stack::new();

#[allow(clippy::zst_offset)] // for case where NUM_SECONDARY_CORES == 0
pub(crate) fn get_secondary_stack_bottom(core_id: usize) -> usize {
unsafe {
SECONDARY_STACKS
Expand Down

0 comments on commit 124740a

Please sign in to comment.