]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/wildcard_imports.rs
Rollup merge of #73236 - GuillaumeGomez:cleanup-e0666, r=Dylan-DPC
[rust.git] / src / tools / clippy / clippy_lints / src / wildcard_imports.rs
index 32d9a45c37d78fea94190d3273cbf3844cab6b73..b637253bd0264666418adde8d5c4c86f6f55beee 100644 (file)
     /// still around.
     ///
     /// **Example:**
-    /// ```rust
+    /// ```rust,ignore
+    /// // Bad
     /// use std::cmp::Ordering::*;
+    /// foo(Less);
+    ///
+    /// // Good
+    /// use std::cmp::Ordering;
+    /// foo(Ordering::Less)
     /// ```
     pub ENUM_GLOB_USE,
     pedantic,
     ///
     /// **Example:**
     ///
-    /// Bad:
     /// ```rust,ignore
+    /// // Bad
     /// use crate1::*;
     ///
     /// foo();
     /// ```
     ///
-    /// Good:
     /// ```rust,ignore
+    /// // Good
     /// use crate1::foo;
     ///
     /// foo();