rust/clippy_lints
bors 05740adf6e Auto merge of #10807 - y21:issue10800, r=Jarcho
[`unused_async`]: do not consider `await` in nested `async` blocks as used

Fixes #10800.
This PR makes sure that `await` expressions inside of inner `async` blocks don't prevent the lint from triggering.
For example
```rs
async fn foo() {
  async {
    std::future::ready(()).await;
  }
}
```
Even though there *is* a `.await` expression in this function, it's contained in an async block, which means that the enclosing function doesn't need to be `async` too.

changelog: [`unused_async`]: do not consider `await` in nested `async` blocks as used
2023-05-26 00:30:24 +00:00
..
src Auto merge of #10807 - y21:issue10800, r=Jarcho 2023-05-26 00:30:24 +00:00
Cargo.toml Auto merge of #10682 - J-ZhengLi:issue10680, r=dswij 2023-05-18 01:46:01 +00:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.