about summary refs log tree commit diff
path: root/src/docs/missing_trait_methods.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/missing_trait_methods.txt')
-rw-r--r--src/docs/missing_trait_methods.txt40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/docs/missing_trait_methods.txt b/src/docs/missing_trait_methods.txt
deleted file mode 100644
index 788ad764f8c..00000000000
--- a/src/docs/missing_trait_methods.txt
+++ /dev/null
@@ -1,40 +0,0 @@
-### What it does
-Checks if a provided method is used implicitly by a trait
-implementation. A usage example would be a wrapper where every method
-should perform some operation before delegating to the inner type's
-implemenation.
-
-This lint should typically be enabled on a specific trait `impl` item
-rather than globally.
-
-### Why is this bad?
-Indicates that a method is missing.
-
-### Example
-```
-trait Trait {
-    fn required();
-
-    fn provided() {}
-}
-
-#[warn(clippy::missing_trait_methods)]
-impl Trait for Type {
-    fn required() { /* ... */ }
-}
-```
-Use instead:
-```
-trait Trait {
-    fn required();
-
-    fn provided() {}
-}
-
-#[warn(clippy::missing_trait_methods)]
-impl Trait for Type {
-    fn required() { /* ... */ }
-
-    fn provided() { /* ... */ }
-}
-```
\ No newline at end of file