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>
This commit is contained in:
Sosthene 2022-07-30 13:17:51 +02:00 committed by GitHub
parent 1fd9f2d271
commit 23b4fe6da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);