We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
collapsible_str_replace
1 parent 5857a01 commit 7001085Copy full SHA for 7001085
clippy_lints/src/methods/mod.rs
@@ -159,7 +159,7 @@ declare_clippy_lint! {
159
/// ```
160
/// Use instead:
161
/// ```rust
162
- /// let hello = "hesuo worpd".replace(&['s', 'u', 'p'], "l");
+ /// let hello = "hesuo worpd".replace(['s', 'u', 'p'], "l");
163
164
#[clippy::version = "1.65.0"]
165
pub COLLAPSIBLE_STR_REPLACE,
0 commit comments