chore: kernel/objects/tcb: make clippy happy

This commit is contained in:
Paul Pan 2024-09-03 19:34:06 +08:00
parent 5b40dabb7b
commit 163813fbde

View File

@ -99,10 +99,7 @@ impl TcbObject {
} }
pub fn schedulable(&self) -> bool { pub fn schedulable(&self) -> bool {
match self.state { matches!(self.state, ThreadState::Idle | ThreadState::Running)
ThreadState::Idle | ThreadState::Running => true,
_ => false,
}
} }
pub fn schedule_next(&self) { pub fn schedule_next(&self) {