Updating docs to reflect more recent changes to expect_fun_call lint
This commit is contained in:
parent
e70632215e
commit
c6fb47331a
1 changed files with 5 additions and 1 deletions
|
|
@ -347,7 +347,11 @@ declare_clippy_lint! {
|
|||
/// ```
|
||||
/// this can instead be written:
|
||||
/// ```rust
|
||||
/// foo.unwrap_or_else(|_| panic!(&format("Err {}: {}", err_code, err_msg)))
|
||||
/// foo.unwrap_or_else(|_| panic!("Err {}: {}", err_code, err_msg))
|
||||
/// ```
|
||||
/// or
|
||||
/// ```rust
|
||||
/// foo.unwrap_or_else(|_| panic!(format("Err {}: {}", err_code, err_msg).as_str()))
|
||||
/// ```
|
||||
declare_clippy_lint! {
|
||||
pub EXPECT_FUN_CALL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue