]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/temporary_assignment.txt
Auto merge of #104673 - matthiaskrgr:rollup-85f65ov, r=matthiaskrgr
[rust.git] / src / tools / clippy / src / docs / temporary_assignment.txt
1 ### What it does
2 Checks for construction of a structure or tuple just to
3 assign a value in it.
4
5 ### Why is this bad?
6 Readability. If the structure is only created to be
7 updated, why not write the structure you want in the first place?
8
9 ### Example
10 ```
11 (0, 0).0 = 1
12 ```