Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 17fa282

Browse files
committed
fix: wrong condition of panicking
1 parent f6394bf commit 17fa282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/src/process/collections/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ where
4040
}
4141

4242
pub(in crate::process) fn remove(id: process::Id) {
43-
lock_processes().remove(&id).expect_none("No such process.");
43+
lock_processes().remove(&id).expect("No such process.");
4444
}
4545

4646
fn lock_processes() -> SpinlockGuard<'static, BTreeMap<process::Id, Process>> {

0 commit comments

Comments
 (0)