diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 20803b1e1e11..d79703ab438c 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -3295,14 +3295,14 @@ declare_clippy_lint! { /// The `.parse()` call will always fail. /// /// ### Example - /// ```rust + /// ```rust,ignore /// let mut input = String::new(); /// std::io::stdin().read_line(&mut input).expect("Failed to read a line"); /// let num: i32 = input.parse().expect("Not a number!"); /// assert_eq!(num, 42); // we never even get here! /// ``` /// Use instead: - /// ```rust + /// ```rust,ignore /// let mut input = String::new(); /// std::io::stdin().read_line(&mut input).expect("Failed to read a line"); /// let num: i32 = input.trim_end().parse().expect("Not a number!");