Skip to content

Commit 334d72d

Browse files
committed
refactor(core): address the let_and_return clippy lint
1 parent bc0cb68 commit 334d72d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/r3_core/src/kernel/interrupt.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub const unsafe fn new_interrupt_handler_table<
683683
i += 1;
684684
}
685685

686-
let storage = const_array_from_fn! {
686+
const_array_from_fn! {
687687
fn iter<[T: MakeCombinedHandlersTrait], I: Nat>(ref mut cell: T) -> Option<InterruptHandlerFn> {
688688
// The interrupt line
689689
let line = I::N;
@@ -709,9 +709,7 @@ pub const unsafe fn new_interrupt_handler_table<
709709
Handlers,
710710
NUM_HANDLERS,
711711
>], i>(MakeCombinedHandlers(PhantomData))).collect::<[_; NumLines]>()
712-
};
713-
714-
storage
712+
}
715713
}
716714

717715
#[doc(hidden)]

0 commit comments

Comments
 (0)