summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/no_effect.txt
blob: d4cc08fa8a7d8fc7509cc77872957fdfd701d2e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
### What it does
Checks for statements which have no effect.

### Why is this bad?
Unlike dead code, these statements are actually
executed. However, as they have no effect, all they do is make the code less
readable.

### Example
```
0;
```