summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/type_complexity.txt
blob: 69cd8750050431897a45dd430aca4296b274a1b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
### What it does
Checks for types used in structs, parameters and `let`
declarations above a certain complexity threshold.

### Why is this bad?
Too complex types make the code less readable. Consider
using a `type` definition to simplify them.

### Example
```
struct Foo {
    inner: Rc<Vec<Vec<Box<(u32, u32, u32, u32)>>>>,
}
```