mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
chore: kernel/objects/tcb: make clippy happy
This commit is contained in:
parent
5b40dabb7b
commit
163813fbde
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user