Add boards/ && cargo clippy
This commit is contained in:
parent
b96db03e48
commit
04bb890fb7
17 changed files with 73 additions and 93 deletions
|
@ -27,7 +27,7 @@ impl PidAllocator {
|
|||
pub fn dealloc(&mut self, pid: usize) {
|
||||
assert!(pid < self.current);
|
||||
assert!(
|
||||
self.recycled.iter().find(|ppid| **ppid == pid).is_none(),
|
||||
!self.recycled.iter().any(|ppid| *ppid == pid),
|
||||
"pid {} has been deallocated!",
|
||||
pid
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue