]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/single_component_path_imports.rs
Rollup merge of #85534 - csmoe:demagnle-assert, r=michaelwoerister
[rust.git] / src / tools / clippy / clippy_lints / src / single_component_path_imports.rs
index 1eaad438237ec16f4831806b7f5588e527cc151e..f6487b8c46bd49b2438dfd943cbe71c9bf5116c0 100644 (file)
@@ -7,15 +7,14 @@
 use rustc_span::{edition::Edition, symbol::kw, Span, Symbol};
 
 declare_clippy_lint! {
-    /// **What it does:** Checking for imports with single component use path.
+    /// ### What it does
+    /// Checking for imports with single component use path.
     ///
-    /// **Why is this bad?** Import with single component use path such as `use cratename;`
+    /// ### Why is this bad?
+    /// Import with single component use path such as `use cratename;`
     /// is not necessary, and thus should be removed.
     ///
-    /// **Known problems:** None.
-    ///
-    /// **Example:**
-    ///
+    /// ### Example
     /// ```rust,ignore
     /// use regex;
     ///