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); }