From 7a5b241b657590bf44475a28410aeeef81e6a1b8 Mon Sep 17 00:00:00 2001 From: Jacob Kiesel Date: Tue, 7 May 2024 15:50:59 -0600 Subject: [PATCH] Satisfy clippy --- tests/full.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/full.rs b/tests/full.rs index 7edd3d2..ae5eddb 100644 --- a/tests/full.rs +++ b/tests/full.rs @@ -53,14 +53,13 @@ async fn inherit_repeatedly() { let out = TEST_VALUE .scope(5, async { tokio::spawn( - async { tokio::spawn(async { TEST_VALUE.with(|&v| v) }.inherit_task_local()) } + async { tokio::spawn(async { TEST_VALUE.with(|&v| v) }.inherit_task_local()).await } .inherit_task_local(), ) .await }) .await .unwrap() - .await .unwrap(); assert_eq!(out, 5); }