Skip to content

Commit c6fb473

Browse files
author
Donald Robertson
committed
Updating docs to reflect more recent changes to expect_fun_call lint
1 parent e706322 commit c6fb473

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clippy_lints/src/methods.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,11 @@ declare_clippy_lint! {
347347
/// ```
348348
/// this can instead be written:
349349
/// ```rust
350-
/// foo.unwrap_or_else(|_| panic!(&format("Err {}: {}", err_code, err_msg)))
350+
/// foo.unwrap_or_else(|_| panic!("Err {}: {}", err_code, err_msg))
351+
/// ```
352+
/// or
353+
/// ```rust
354+
/// foo.unwrap_or_else(|_| panic!(format("Err {}: {}", err_code, err_msg).as_str()))
351355
/// ```
352356
declare_clippy_lint! {
353357
pub EXPECT_FUN_CALL,

0 commit comments

Comments
 (0)