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:
parent
1fd9f2d271
commit
23b4fe6da5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user