Skip to content

Commit

Permalink
Rollup merge of #82215 - TaKO8Ki:replace-if-let-while-let, r=varkor
Browse files Browse the repository at this point in the history
Replace if-let and while-let with `if let` and `while let`

This pull request replaces if-let and while-let with `if let` and `while let`.

closes rust-lang/rust#82205
  • Loading branch information
Dylan-DPC authored Feb 18, 2021
2 parents a149f61 + 2d60a61 commit 6e12a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/loops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ declare_clippy_lint! {
/// ```
pub WHILE_LET_ON_ITERATOR,
style,
"using a while-let loop instead of a for loop on an iterator"
"using a `while let` loop instead of a for loop on an iterator"
}

declare_clippy_lint! {
Expand Down

0 comments on commit 6e12a2f

Please sign in to comment.