Skip to content

Commit 8000b44

Browse files
committed
don't run example as a test because it would wait forever
1 parent a95e707 commit 8000b44

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
@@ -3326,14 +3326,14 @@ declare_clippy_lint! {
33263326
/// The `.parse()` call will always fail.
33273327
///
33283328
/// ### Example
3329-
/// ```rust
3329+
/// ```rust,ignore
33303330
/// let mut input = String::new();
33313331
/// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
33323332
/// let num: i32 = input.parse().expect("Not a number!");
33333333
/// assert_eq!(num, 42); // we never even get here!
33343334
/// ```
33353335
/// Use instead:
3336-
/// ```rust
3336+
/// ```rust,ignore
33373337
/// let mut input = String::new();
33383338
/// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
33393339
/// let num: i32 = input.trim_end().parse().expect("Not a number!");

0 commit comments

Comments
 (0)