about summary refs log tree commit diff
path: root/src/docs/useless_conversion.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/useless_conversion.txt')
-rw-r--r--src/docs/useless_conversion.txt17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/docs/useless_conversion.txt b/src/docs/useless_conversion.txt
deleted file mode 100644
index 06000a7ad98..00000000000
--- a/src/docs/useless_conversion.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-### What it does
-Checks for `Into`, `TryInto`, `From`, `TryFrom`, or `IntoIter` calls
-which uselessly convert to the same type.
-
-### Why is this bad?
-Redundant code.
-
-### Example
-```
-// format!() returns a `String`
-let s: String = format!("hello").into();
-```
-
-Use instead:
-```
-let s: String = format!("hello");
-```
\ No newline at end of file