Skip to content

Commit

Permalink
Satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaeroxe committed May 7, 2024
1 parent d3e230b commit 7a5b241
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/full.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,13 @@ async fn inherit_repeatedly() {
let out = TEST_VALUE

Check warning on line 53 in tests/full.rs

View workflow job for this annotation

GitHub Actions / Rustfmt [Formatter]

Diff in /home/runner/work/tokio-inherit-task-local/tokio-inherit-task-local/tests/full.rs
.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);
}
Expand Down

0 comments on commit 7a5b241

Please sign in to comment.