rust/clippy_lints
bors 0f6e50fe1b Auto merge of #8933 - DennisOSRM:needless_braces_range_literal, r=dswij
Add new lint [`needless_parens_on_range_literals`]

changelog: Adds a new lint [`needless_parens_on_range_literals`] to warn on needless braces on literals in a range statement

For example, the lint would catch

```log
error: needless parenthesis on range literals can be removed
  --> $DIR/needless_parens_on_range_literals.rs:8:13
   |
LL |     let _ = ('a')..=('z');
   |             ^^^^^ help: try: `'a'`
   |
   = note: `-D clippy::needless-parens-on-range-literals` implied by `-D warnings`
```
2022-06-06 10:58:33 +00:00
..
src Auto merge of #8933 - DennisOSRM:needless_braces_range_literal, r=dswij 2022-06-06 10:58:33 +00:00
Cargo.toml Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.