Fix warning in context::switch

This commit is contained in:
Jeremy Soller
2018-03-11 11:35:41 -06:00
parent c020ce7d8a
commit 133c433f60

View File

@@ -89,7 +89,7 @@ pub unsafe fn switch() -> bool {
from_ptr = context.deref_mut() as *mut Context;
}
for (pid, context_lock) in contexts.iter() {
for (_pid, context_lock) in contexts.iter() {
let mut context = context_lock.write();
update(&mut context, cpu_id);
}