summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/bool_assert_comparison.txt
blob: df7ca00cc2ba497488c8e5b8ffcb2696e6eee7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### What it does
This lint warns about boolean comparisons in assert-like macros.

### Why is this bad?
It is shorter to use the equivalent.

### Example
```
assert_eq!("a".is_empty(), false);
assert_ne!("a".is_empty(), true);
```

Use instead:
```
assert!(!"a".is_empty());
```