summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/obfuscated_if_else.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/src/docs/obfuscated_if_else.txt')
-rw-r--r--src/tools/clippy/src/docs/obfuscated_if_else.txt21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/tools/clippy/src/docs/obfuscated_if_else.txt b/src/tools/clippy/src/docs/obfuscated_if_else.txt
deleted file mode 100644
index 638f63b0d..000000000
--- a/src/tools/clippy/src/docs/obfuscated_if_else.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-### What it does
-Checks for usages of `.then_some(..).unwrap_or(..)`
-
-### Why is this bad?
-This can be written more clearly with `if .. else ..`
-
-### Limitations
-This lint currently only looks for usages of
-`.then_some(..).unwrap_or(..)`, but will be expanded
-to account for similar patterns.
-
-### Example
-```
-let x = true;
-x.then_some("a").unwrap_or("b");
-```
-Use instead:
-```
-let x = true;
-if x { "a" } else { "b" };
-``` \ No newline at end of file