summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/string_from_utf8_as_bytes.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tools/clippy/src/docs/string_from_utf8_as_bytes.txt15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/tools/clippy/src/docs/string_from_utf8_as_bytes.txt b/src/tools/clippy/src/docs/string_from_utf8_as_bytes.txt
deleted file mode 100644
index 9102d7347..000000000
--- a/src/tools/clippy/src/docs/string_from_utf8_as_bytes.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-### What it does
-Check if the string is transformed to byte array and casted back to string.
-
-### Why is this bad?
-It's unnecessary, the string can be used directly.
-
-### Example
-```
-std::str::from_utf8(&"Hello World!".as_bytes()[6..11]).unwrap();
-```
-
-Use instead:
-```
-&"Hello World!"[6..11];
-``` \ No newline at end of file