Skip to content

Commit 3376c71

Browse files
committed
Add note to remove if statement altogether
1 parent e9ced12 commit 3376c71

File tree

1 file changed

+2
-0
lines changed
  • clippy_lints/src/misc_early

1 file changed

+2
-0
lines changed

clippy_lints/src/misc_early/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ declare_clippy_lint! {
340340
/// // NOTE: Type is a `Vec` here
341341
/// println!("all elements: {all:#?}");
342342
/// }
343+
/// // or
344+
/// println!("all elements: {v:#?}");
343345
/// ```
344346
#[clippy::version = "1.72.0"]
345347
pub REDUNDANT_AT_REST_PATTERN,

0 commit comments

Comments
 (0)