summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/iter_on_single_items.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/src/docs/iter_on_single_items.txt')
-rw-r--r--src/tools/clippy/src/docs/iter_on_single_items.txt24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/tools/clippy/src/docs/iter_on_single_items.txt b/src/tools/clippy/src/docs/iter_on_single_items.txt
deleted file mode 100644
index d0388f25d..000000000
--- a/src/tools/clippy/src/docs/iter_on_single_items.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-### What it does
-
-Checks for calls to `iter`, `iter_mut` or `into_iter` on collections containing a single item
-
-### Why is this bad?
-
-It is simpler to use the once function from the standard library:
-
-### Example
-
-```
-let a = [123].iter();
-let b = Some(123).into_iter();
-```
-Use instead:
-```
-use std::iter;
-let a = iter::once(&123);
-let b = iter::once(123);
-```
-
-### Known problems
-
-The type of the resulting iterator might become incompatible with its usage \ No newline at end of file