Set existing doc-tests to no_run

This commit is contained in:
Alex Macleod 2023-10-23 13:49:18 +00:00
parent 56ece10c88
commit 7347c1803f
232 changed files with 989 additions and 989 deletions

View file

@ -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!") };