summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/async_yields_async.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tools/clippy/src/docs/async_yields_async.txt28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/tools/clippy/src/docs/async_yields_async.txt b/src/tools/clippy/src/docs/async_yields_async.txt
deleted file mode 100644
index a40de6d2e..000000000
--- a/src/tools/clippy/src/docs/async_yields_async.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-### What it does
-Checks for async blocks that yield values of types
-that can themselves be awaited.
-
-### Why is this bad?
-An await is likely missing.
-
-### Example
-```
-async fn foo() {}
-
-fn bar() {
- let x = async {
- foo()
- };
-}
-```
-
-Use instead:
-```
-async fn foo() {}
-
-fn bar() {
- let x = async {
- foo().await
- };
-}
-``` \ No newline at end of file