File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -342,20 +342,16 @@ declare_clippy_lint! {
342
342
///
343
343
/// **Example:**
344
344
/// ```rust
345
- /// foo.expect(&format("Err {}: {}", err_code, err_msg))
345
+ /// foo.expect(&format! ("Err {}: {}", err_code, err_msg))
346
346
/// ```
347
347
/// or
348
348
/// ```rust
349
- /// foo.expect(format("Err {}: {}", err_code, err_msg).as_str())
349
+ /// foo.expect(format! ("Err {}: {}", err_code, err_msg).as_str())
350
350
/// ```
351
351
/// this can instead be written:
352
352
/// ```rust
353
353
/// foo.unwrap_or_else(|_| panic!("Err {}: {}", err_code, err_msg))
354
354
/// ```
355
- /// or
356
- /// ```rust
357
- /// foo.unwrap_or_else(|_| panic!(format("Err {}: {}", err_code, err_msg).as_str()))
358
- /// ```
359
355
declare_clippy_lint ! {
360
356
pub EXPECT_FUN_CALL ,
361
357
perf,
You can’t perform that action at this time.
0 commit comments