From 7acf2a869f4635ddf55eac789bf4196019b7fe56 Mon Sep 17 00:00:00 2001 From: Talha Qamar Date: Wed, 27 Nov 2024 02:44:23 +0500 Subject: [PATCH] Got rid of move for konii's PTSD --- kernel/src/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/task.rs b/kernel/src/task.rs index 7cf5c103..c79140f7 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;