Skip to content

Commit 0e4fbdb

Browse files
committed
Resolve clippy complaining about manual async
1 parent b980df3 commit 0e4fbdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/physical-plan/src/stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,12 +563,12 @@ where
563563
Box::pin(RecordBatchStreamAdapter::new(schema, emit_stream))
564564
}
565565

566-
pub(crate) fn spawn_deferred<F, R>(task: F) -> impl Future<Output = Result<R>>
566+
pub(crate) async fn spawn_deferred<F, R>(task: F) -> Result<R>
567567
where
568568
F: Future<Output = Result<R>> + Send + 'static,
569569
R: Send + 'static,
570570
{
571-
async move { SpawnedTask::spawn(task).await? }
571+
SpawnedTask::spawn(task).await?
572572
}
573573

574574
#[cfg(test)]

0 commit comments

Comments
 (0)