]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/async_yields_async.rs
Rollup merge of #87557 - rylev:fix-invalid-prelude-collision-error, r=nikomatsakis
[rust.git] / src / tools / clippy / clippy_lints / src / async_yields_async.rs
index e6c7c68f91a07a0ce3cb320f67a43aa7a7a5d0e8..182736a5a205a6ab3178ef7de4e83af150df74e8 100644 (file)
@@ -7,15 +7,14 @@
 use rustc_session::{declare_lint_pass, declare_tool_lint};
 
 declare_clippy_lint! {
-    /// **What it does:** Checks for async blocks that yield values of types
+    /// ### 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.
-    ///
-    /// **Known problems:** None.
-    ///
-    /// **Example:**
+    /// ### Why is this bad?
+    /// An await is likely missing.
     ///
+    /// ### Example
     /// ```rust
     /// async fn foo() {}
     ///