1
Fork 0

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

@ -21,13 +21,13 @@ declare_clippy_lint! {
/// While using `write!` in the suggested way should never fail, this isn't necessarily clear to the programmer.
///
/// ### Example
/// ```rust
/// ```no_run
/// let mut s = String::new();
/// s += &format!("0x{:X}", 1024);
/// s.push_str(&format!("0x{:X}", 1024));
/// ```
/// Use instead:
/// ```rust
/// ```no_run
/// use std::fmt::Write as _; // import without risk of name clashing
///
/// let mut s = String::new();