diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/clippy/src/docs/match_wildcard_for_single_variants.txt | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/tools/clippy/src/docs/match_wildcard_for_single_variants.txt b/src/tools/clippy/src/docs/match_wildcard_for_single_variants.txt deleted file mode 100644 index 25559b9ec..000000000 --- a/src/tools/clippy/src/docs/match_wildcard_for_single_variants.txt +++ /dev/null @@ -1,27 +0,0 @@ -### What it does -Checks for wildcard enum matches for a single variant. - -### Why is this bad? -New enum variants added by library updates can be missed. - -### Known problems -Suggested replacements may not use correct path to enum -if it's not present in the current scope. - -### Example -``` -match x { - Foo::A => {}, - Foo::B => {}, - _ => {}, -} -``` - -Use instead: -``` -match x { - Foo::A => {}, - Foo::B => {}, - Foo::C => {}, -} -```
\ No newline at end of file |