summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/op_ref.txt
blob: 7a7ed1bc9badc1c215022b1a4afed49ee4967f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
### What it does
Checks for arguments to `==` which have their address
taken to satisfy a bound
and suggests to dereference the other argument instead

### Why is this bad?
It is more idiomatic to dereference the other argument.

### Example
```
&x == y
```

Use instead:
```
x == *y
```