about summary refs log tree commit diff
path: root/src/docs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-10-07 17:08:29 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-10-09 13:07:21 +0000
commit7cfc6fa1f0c847c749929925f9def0fdc690d417 (patch)
tree1c08501d9ca5c38691eaaa2cbd8ca933ff01ae07 /src/docs
parent05dcfd971a2736cf0eac04bb04f6539f36d05a44 (diff)
deprecate `clippy::for_loops_over_fallibles`
Diffstat (limited to 'src/docs')
-rw-r--r--src/docs/for_loops_over_fallibles.txt32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/docs/for_loops_over_fallibles.txt b/src/docs/for_loops_over_fallibles.txt
deleted file mode 100644
index c5a7508e45d..00000000000
--- a/src/docs/for_loops_over_fallibles.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-### What it does
-Checks for `for` loops over `Option` or `Result` values.
-
-### Why is this bad?
-Readability. This is more clearly expressed as an `if
-let`.
-
-### Example
-```
-for x in opt {
-    // ..
-}
-
-for x in &res {
-    // ..
-}
-
-for x in res.iter() {
-    // ..
-}
-```
-
-Use instead:
-```
-if let Some(x) = opt {
-    // ..
-}
-
-if let Ok(x) = res {
-    // ..
-}
-```
\ No newline at end of file