]> git.lizzy.rs Git - rust.git/blob - src/docs/type_complexity.txt
[Arithmetic] Consider literals
[rust.git] / src / docs / type_complexity.txt
1 ### What it does
2 Checks for types used in structs, parameters and `let`
3 declarations above a certain complexity threshold.
4
5 ### Why is this bad?
6 Too complex types make the code less readable. Consider
7 using a `type` definition to simplify them.
8
9 ### Example
10 ```
11 struct Foo {
12     inner: Rc<Vec<Vec<Box<(u32, u32, u32, u32)>>>>,
13 }
14 ```