Skip to content

Commit

Permalink
add await to future::pending
Browse files Browse the repository at this point in the history
Caught by the clippy lint.
  • Loading branch information
hds committed Jun 17, 2022
1 parent cddbcb9 commit 0196c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/tests/rt_panic.rs
Expand Up @@ -56,7 +56,7 @@ fn test_into_panic_panic_caller() -> Result<(), Box<dyn Error>> {
let panic_location_file = test_panic(move || {
let rt = basic();
rt.block_on(async {
let handle = tokio::spawn(async { future::pending::<()>() });
let handle = tokio::spawn(async { future::pending::<()>().await });

handle.abort();

Expand Down

0 comments on commit 0196c31

Please sign in to comment.