Add boards/ && clippy
This commit is contained in:
parent
26bc01f3bc
commit
60143939d4
20 changed files with 89 additions and 89 deletions
|
@ -40,7 +40,7 @@ pub fn fetch_task() -> Option<Arc<TaskControlBlock>> {
|
|||
|
||||
pub fn pid2process(pid: usize) -> Option<Arc<ProcessControlBlock>> {
|
||||
let map = PID2PCB.exclusive_access();
|
||||
map.get(&pid).map(|task| Arc::clone(task))
|
||||
map.get(&pid).map(Arc::clone)
|
||||
}
|
||||
|
||||
pub fn insert_into_pid2process(pid: usize, process: Arc<ProcessControlBlock>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue