about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index a7d92b96e3c..848086dd368 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -210,9 +210,6 @@ void task_start_wrapper(spawn_args *a)
 #else
         A(task->sched, false, "Shouldn't happen");
 #endif
-    } else {
-        task->lock.lock();
-        task->lock.unlock();
     }
     task->ctx.next->swap(task->ctx);
 }