Fix dogfood

This commit is contained in:
nixx quality 2021-12-05 21:50:05 +01:00
parent e3c60444ce
commit 01e302b2f7
No known key found for this signature in database
GPG key ID: ACAFA0B975FA63F9
5 changed files with 8 additions and 8 deletions

View file

@ -106,9 +106,9 @@ fn check_str(cx: &LateContext<'_>, span: Span, id: HirId) {
"invisible character detected",
"consider replacing the string with",
string
.replace("\u{200B}", "\\u{200B}")
.replace("\u{ad}", "\\u{AD}")
.replace("\u{2060}", "\\u{2060}"),
.replace('\u{200B}', "\\u{200B}")
.replace('\u{ad}', "\\u{AD}")
.replace('\u{2060}', "\\u{2060}"),
Applicability::MachineApplicable,
);
}