diff options
| author | Sosthene <51865119+sgued@users.noreply.github.com> | 2022-07-30 13:17:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-30 13:17:51 +0200 |
| commit | 23b4fe6da55291a5937535d09af2bdfed8a9a50d (patch) | |
| tree | a7faa354ead6be61d564f4b54d533d390620d8f6 | |
| parent | 1fd9f2d2716689022a0473f8bce5d2f40275bd64 (diff) | |
| download | rust-23b4fe6da55291a5937535d09af2bdfed8a9a50d.tar.gz rust-23b4fe6da55291a5937535d09af2bdfed8a9a50d.zip | |
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 <f.seasons017@gmail.com>
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 06e7af57ee1..5ac6b09f0aa 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<usize, ()> = 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<usize, ()> = Ok(1); |
