summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/default_trait_access.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tools/clippy/src/docs/default_trait_access.txt16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/tools/clippy/src/docs/default_trait_access.txt b/src/tools/clippy/src/docs/default_trait_access.txt
deleted file mode 100644
index e69298969..000000000
--- a/src/tools/clippy/src/docs/default_trait_access.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-### What it does
-Checks for literal calls to `Default::default()`.
-
-### Why is this bad?
-It's easier for the reader if the name of the type is used, rather than the
-generic `Default`.
-
-### Example
-```
-let s: String = Default::default();
-```
-
-Use instead:
-```
-let s = String::default();
-``` \ No newline at end of file