Skip to content

Commit ccdc7cc

Browse files
committed
clippy cleanup
1 parent 8ef3eb9 commit ccdc7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peripheral/scb.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ impl VectActive {
301301
12 => VectActive::Exception(Exception::DebugMonitor),
302302
14 => VectActive::Exception(Exception::PendSV),
303303
15 => VectActive::Exception(Exception::SysTick),
304-
irqn if irqn >= 16 && irqn < 512 => VectActive::Interrupt { irqn: irqn - 16 },
304+
irqn if (16..512).contains(&irqn) => VectActive::Interrupt { irqn: irqn - 16 },
305305
_ => return None,
306306
})
307307
}

0 commit comments

Comments
 (0)