2020-06-23 15:05:22 +00:00
|
|
|
---
|
|
|
|
name: New lint suggestion
|
|
|
|
about: Suggest a new Clippy lint.
|
2021-02-25 10:25:22 +00:00
|
|
|
labels: A-lint
|
2020-06-23 15:05:22 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
### What it does
|
|
|
|
|
|
|
|
*What does this lint do?*
|
|
|
|
|
|
|
|
### Categories (optional)
|
|
|
|
|
|
|
|
- Kind: *See <https://github.com/rust-lang/rust-clippy/blob/master/README.md#clippy> for list of lint kinds*
|
|
|
|
|
2020-07-14 12:59:59 +00:00
|
|
|
*What is the advantage of the recommended code over the original code*
|
2020-06-23 15:05:22 +00:00
|
|
|
|
|
|
|
For example:
|
|
|
|
- Remove bounce checking inserted by ...
|
|
|
|
- Remove the need to duplicating/storing/typo ...
|
|
|
|
|
|
|
|
### Drawbacks
|
|
|
|
|
|
|
|
None.
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
```rust
|
|
|
|
<code>
|
|
|
|
```
|
|
|
|
|
|
|
|
Could be written as:
|
|
|
|
|
|
|
|
```rust
|
|
|
|
<code>
|
|
|
|
```
|