You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the char to replace is a double quote ", clippy suggests to replace it using the escape character, but in this case the escape character is not needed.
Reproducer
error: single-character string constant used as pattern
--> crates/.../src/lib.rs:79:92
|
79 | ... let clean_string = lit.to_string().replace("\"", "");
| ^^^^ help: try using a `char` instead: `'\"'`