diff --git a/kernel/src/task.rs b/kernel/src/task.rs index 7cf5c10..c79140f 100644 --- a/kernel/src/task.rs +++ b/kernel/src/task.rs @@ -100,7 +100,7 @@ impl Executor { if let Poll::Ready(()) = task.poll(&mut cx) { self.tasks.remove(id); - self.interrupt_lookup.map(move |pid|{ + self.interrupt_lookup.map(|pid|{ if let Some(pid) = pid{ if pid == id { return None;