about summary refs log tree commit diff
path: root/clippy_lints/src/unnecessary_struct_initialization.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/unnecessary_struct_initialization.rs')
-rw-r--r--clippy_lints/src/unnecessary_struct_initialization.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/unnecessary_struct_initialization.rs b/clippy_lints/src/unnecessary_struct_initialization.rs
index f4111186c64..b75df0dec9a 100644
--- a/clippy_lints/src/unnecessary_struct_initialization.rs
+++ b/clippy_lints/src/unnecessary_struct_initialization.rs
@@ -15,14 +15,14 @@ declare_clippy_lint! {
     /// Readability suffers from unnecessary struct building.
     ///
     /// ### Example
-    /// ```rust
+    /// ```no_run
     /// struct S { s: String }
     ///
     /// let a = S { s: String::from("Hello, world!") };
     /// let b = S { ..a };
     /// ```
     /// Use instead:
-    /// ```rust
+    /// ```no_run
     /// struct S { s: String }
     ///
     /// let a = S { s: String::from("Hello, world!") };