Add boards/ && clippy

This commit is contained in:
Yifan Wu 2022-01-24 23:23:03 -08:00
parent 26bc01f3bc
commit 60143939d4
20 changed files with 89 additions and 89 deletions

View file

@ -74,11 +74,10 @@ pub fn sys_waitpid(pid: isize, exit_code_ptr: *mut i32) -> isize {
// find a child process
let mut inner = process.inner_exclusive_access();
if inner
if !inner
.children
.iter()
.find(|p| pid == -1 || pid as usize == p.getpid())
.is_none()
.any(|p| pid == -1 || pid as usize == p.getpid())
{
return -1;
// ---- release current PCB