Commit 4eacce80 authored by François Laignel's avatar François Laignel

threadshare: runtime: simplify a function thanks to clippy

parent 7c3e69bb
Pipeline #216820 failed with stages
in 20 minutes and 15 seconds
......@@ -632,15 +632,13 @@ impl Context {
}
}
pub fn drain_sub_tasks() -> impl Future<Output = SubTaskOutput> + Send + 'static {
async {
let (ctx, task_id) = match Context::current_task() {
Some(task) => task,
None => return Ok(()),
};
pub async fn drain_sub_tasks() -> SubTaskOutput {
let (ctx, task_id) = match Context::current_task() {
Some(task) => task,
None => return Ok(()),
};
ctx.drain_sub_tasks_internal(task_id).await
}
ctx.drain_sub_tasks_internal(task_id).await
}
fn drain_sub_tasks_internal(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment