Skip to content

Commit 3df67cc

Browse files
committed
don't run example as a test because it would wait forever
1 parent 488e52b commit 3df67cc

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3295,14 +3295,14 @@ declare_clippy_lint! {
32953295
/// The `.parse()` call will always fail.
32963296
///
32973297
/// ### Example
3298-
/// ```rust
3298+
/// ```rust,ignore
32993299
/// let mut input = String::new();
33003300
/// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
33013301
/// let num: i32 = input.parse().expect("Not a number!");
33023302
/// assert_eq!(num, 42); // we never even get here!
33033303
/// ```
33043304
/// Use instead:
3305-
/// ```rust
3305+
/// ```rust,ignore
33063306
/// let mut input = String::new();
33073307
/// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
33083308
/// let num: i32 = input.trim_end().parse().expect("Not a number!");

0 commit comments

Comments
 (0)