fix: sched round-robin, cap slot OOB panic, clippy, make ci
- RunList -> intrusive FIFO, no starvation, no silent drop - cap table sized to CapSlot range (kani caught OOB panic) - snake food color test uses const - kani cfg lint, RUST_MIN_STACK for big kernel struct in tests
This commit is contained in:
@@ -25,7 +25,7 @@ macro_rules! bounded {
|
||||
pub const MAX: $inner = $max;
|
||||
|
||||
pub fn new(value: $inner) -> Option<Self> {
|
||||
if value >= Self::MIN && value <= Self::MAX {
|
||||
if (Self::MIN..=Self::MAX).contains(&value) {
|
||||
Some(Self(value))
|
||||
} else {
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user