rust/clippy_lints
bors c4fbe54ac3 Auto merge of #9817 - mgrachev:patch-1, r=Manishearth
Update lint example for `collapsible_str_replace`

To fix this warning:
```
warning: the borrowed expression implements the required traits
  --> src/fixes/quote_character.rs:16:43
   |
16 |         let hello = "hesuo worpd".replace(&['s', 'u', 'p'], "l");
   |                                           ^^^^^^^^^^^^^^^^ help: change this to: `['s', 'u', 'p']`
   |
   = note: `#[warn(clippy::needless_borrow)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
```

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: none
2022-11-08 16:07:32 +00:00
..
src Auto merge of #9817 - mgrachev:patch-1, r=Manishearth 2022-11-08 16:07:32 +00:00
Cargo.toml Generate lint categories and explanations with declare_clippy_lint 2022-10-23 20:32:26 +00:00
foo.txt Bless all let_underscore tests 2022-11-04 21:21:55 -07:00
README.md

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