From 23b4fe6da55291a5937535d09af2bdfed8a9a50d Mon Sep 17 00:00:00 2001 From: Sosthene <51865119+sgued@users.noreply.github.com> Date: Sat, 30 Jul 2022 13:17:51 +0200 Subject: [PATCH] Apply suggestions from code review The expect_used lint is allow-by-default, so it would be better to show the case where this is enabled. Co-authored-by: Takayuki Nakata --- 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 06e7af57ee17..5ac6b09f0aa2 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -197,7 +197,7 @@ declare_clippy_lint! { /// result.unwrap(); /// ``` /// - /// If [expect_used](#expect_used) is allowed, instead: + /// Use instead: /// ```rust /// # let option = Some(1); /// # let result: Result = Ok(1); @@ -205,7 +205,7 @@ declare_clippy_lint! { /// result.expect("more helpful message"); /// ``` /// - /// Otherwise try using + /// If [expect_used](#expect_used) is enabled, instead: /// ```rust,ignore /// # let option = Some(1); /// # let result: Result = Ok(1);