Set existing doc-tests to no_run
This commit is contained in:
parent
56ece10c88
commit
7347c1803f
232 changed files with 989 additions and 989 deletions
|
|
@ -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!") };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue