c4fbe54ac3
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
foo.txt | ||
README.md |