mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-30 00:23:24 +00:00
Use #[expect(lint)]
, not #[allow(lint)]
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
1899646391
commit
0dca168717
@ -27,7 +27,7 @@ pub(in crate::task) fn should_preempt() -> bool {
|
||||
PREEMPT_INFO.load() == 0
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[expect(dead_code)]
|
||||
pub(in crate::task) fn need_preempt() -> bool {
|
||||
PREEMPT_INFO.load() & NEED_PREEMPT_MASK == 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user