Skip to content

Commit b885386

Browse files
committed
SQUASH fix clippy
1 parent 41646b1 commit b885386

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sys/kern/src/arch/arm_m.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,11 +1122,10 @@ pub unsafe extern "C" fn DefaultHandler() {
11221122
let current = CURRENT_TASK_PTR.load(Ordering::Relaxed);
11231123
uassert!(!current.is_null()); // irq before kernel started?
11241124

1125-
let current_prio = {
1125+
{
11261126
let t = unsafe { &mut *current };
11271127
t.update_stack_watermark();
1128-
t.priority()
1129-
};
1128+
}
11301129

11311130
// The first 16 exceptions are architecturally defined; vendor hardware
11321131
// interrupts start at 16.

0 commit comments

Comments
 (0)