summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/nonsensical_open_options.txt
blob: 7a95443b51a50088a4560099e7eef74625d321bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
### What it does
Checks for duplicate open options as well as combinations
that make no sense.

### Why is this bad?
In the best case, the code will be harder to read than
necessary. I don't know the worst case.

### Example
```
use std::fs::OpenOptions;

OpenOptions::new().read(true).truncate(true);
```