]> git.lizzy.rs Git - rust.git/commitdiff
Fix rustup fallout
authorEduardo Broto <ebroto@tutanota.com>
Mon, 5 Oct 2020 20:32:04 +0000 (22:32 +0200)
committerEduardo Broto <ebroto@tutanota.com>
Mon, 5 Oct 2020 20:32:04 +0000 (22:32 +0200)
clippy_lints/src/attrs.rs

index c8f153e7201cb12988e0030f928446f7490bcda2..f6eadbdef0bb0eeb69133d16491a3f413733e21e 100644 (file)
     /// **Example:**
     /// ```rust
     /// // Good (as inner attribute)
-    /// #![inline(always)]
+    /// #![allow(dead_code)]
     ///
     /// fn this_is_fine() { }
     ///
     /// // Bad
-    /// #[inline(always)]
+    /// #[allow(dead_code)]
     ///
     /// fn not_quite_good_code() { }
     ///
     /// // Good (as outer attribute)
-    /// #[inline(always)]
+    /// #[allow(dead_code)]
     /// fn this_is_fine_too() { }
     /// ```
     pub EMPTY_LINE_AFTER_OUTER_ATTR,