summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/empty_structs_with_brackets.txt
blob: ab5e35ae2ada8c475775f307275790b1bd7e16a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
### What it does
Finds structs without fields (a so-called "empty struct") that are declared with brackets.

### Why is this bad?
Empty brackets after a struct declaration can be omitted.

### Example
```
struct Cookie {}
```
Use instead:
```
struct Cookie;
```