From 3df67cc2500f25e6c8ea76de17e853ddfdeb0c18 Mon Sep 17 00:00:00 2001 From: y21 <30553356+y21@users.noreply.github.com> Date: Sat, 17 Jun 2023 02:12:16 +0200 Subject: [PATCH] don't run example as a test because it would wait forever --- clippy_lints/src/methods/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!");