Skip to content

Commit 56ece10

Browse files
committed
Use no_run for doc-tests in new lints
1 parent f942470 commit 56ece10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_dev/src/new_lint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,11 @@ fn get_lint_declaration(name_upper: &str, category: &str) -> String {
346346
/// ### Why is this bad?
347347
///
348348
/// ### Example
349-
/// ```rust
349+
/// ```no_run
350350
/// // example code where clippy issues a warning
351351
/// ```
352352
/// Use instead:
353-
/// ```rust
353+
/// ```no_run
354354
/// // example code which does not raise clippy warning
355355
/// ```
356356
#[clippy::version = "{}"]

0 commit comments

Comments
 (0)