Add boards/ && cargo clippy

This commit is contained in:
Yifan Wu 2022-01-24 17:50:49 -08:00
parent b96db03e48
commit 04bb890fb7
17 changed files with 73 additions and 93 deletions

View file

@ -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
);