51c3b42ef3
Apply suggestions from code review Co-authored-by: Philipp Krones <hello@philkrones.com>
36 lines
511 B
Markdown
36 lines
511 B
Markdown
---
|
|
name: New lint suggestion
|
|
about: Suggest a new Clippy lint.
|
|
labels: L-lint
|
|
---
|
|
|
|
### 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*
|
|
|
|
*What benefit of this lint over old code?*
|
|
|
|
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>
|
|
```
|