]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | --- |
2 | name: New lint suggestion | |
3 | about: Suggest a new Clippy lint. | |
4 | labels: A-lint | |
5 | --- | |
6 | ||
7 | ### What it does | |
8 | ||
9 | *What does this lint do?* | |
10 | ||
11 | ### Categories (optional) | |
12 | ||
13 | - Kind: *See <https://github.com/rust-lang/rust-clippy/blob/master/README.md#clippy> for list of lint kinds* | |
14 | ||
15 | *What is the advantage of the recommended code over the original code* | |
16 | ||
17 | For example: | |
18 | - Remove bounce checking inserted by ... | |
19 | - Remove the need to duplicating/storing/typo ... | |
20 | ||
21 | ### Drawbacks | |
22 | ||
23 | None. | |
24 | ||
25 | ### Example | |
26 | ||
27 | ```rust | |
28 | <code> | |
29 | ``` | |
30 | ||
31 | Could be written as: | |
32 | ||
33 | ```rust | |
34 | <code> | |
35 | ``` |