about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-18 16:57:37 +0100
committerGitHub <noreply@github.com>2021-02-18 16:57:37 +0100
commit6e12a2f9e225e97fbc041b7201d5821e46e2439f (patch)
tree2500e0d6378d9fbb1b64df352716827cbe955074
parenta149f61244738d82769fe226b0f7a812eae5e0c0 (diff)
parent2d60a6113df537221f143814be8030b4ae54ac5f (diff)
downloadrust-6e12a2f9e225e97fbc041b7201d5821e46e2439f.tar.gz
rust-6e12a2f9e225e97fbc041b7201d5821e46e2439f.zip
Rollup merge of #82215 - TaKO8Ki:replace-if-let-while-let, r=varkor
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 https://github.com/rust-lang/rust/issues/82205
-rw-r--r--clippy_lints/src/loops.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/loops.rs b/clippy_lints/src/loops.rs
index eb185377e20..1c9373a756c 100644
--- a/clippy_lints/src/loops.rs
+++ b/clippy_lints/src/loops.rs
@@ -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! {