mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 19:13:29 +00:00
8c5d301e1b
For context: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Label.20cleanup/near/224083870
35 lines
539 B
Markdown
35 lines
539 B
Markdown
---
|
|
name: New lint suggestion
|
|
about: Suggest a new Clippy lint.
|
|
labels: A-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 is the advantage of the recommended code over the original 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>
|
|
```
|