summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/let_and_return.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tools/clippy/src/docs/let_and_return.txt21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/tools/clippy/src/docs/let_and_return.txt b/src/tools/clippy/src/docs/let_and_return.txt
deleted file mode 100644
index eba5a90dd..000000000
--- a/src/tools/clippy/src/docs/let_and_return.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-### What it does
-Checks for `let`-bindings, which are subsequently
-returned.
-
-### Why is this bad?
-It is just extraneous code. Remove it to make your code
-more rusty.
-
-### Example
-```
-fn foo() -> String {
- let x = String::new();
- x
-}
-```
-instead, use
-```
-fn foo() -> String {
- String::new()
-}
-``` \ No newline at end of file