@@ -56,17 +56,17 @@ declare_clippy_lint! {
56
56
///
57
57
/// **Known problems** None.
58
58
///
59
- /// **Example:** You may not see it, but “à” and “à” aren't the same string. The
59
+ /// **Example:** You may not see it, but "à"" and "à"" aren't the same string. The
60
60
/// former when escaped is actually `"a\u{300}"` while the latter is `"\u{e0}"`.
61
61
pub UNICODE_NOT_NFC ,
62
62
pedantic,
63
- "using a unicode literal not in NFC normal form (see [unicode tr15](http://www.unicode.org/reports/tr15/) for further information)"
63
+ "using a Unicode literal not in NFC normal form (see [Unicode tr15](http://www.unicode.org/reports/tr15/) for further information)"
64
64
}
65
65
66
66
declare_lint_pass ! ( Unicode => [ ZERO_WIDTH_SPACE , NON_ASCII_LITERAL , UNICODE_NOT_NFC ] ) ;
67
67
68
- impl < ' a , ' tcx > LateLintPass < ' a , ' tcx > for Unicode {
69
- fn check_expr ( & mut self , cx : & LateContext < ' a , ' tcx > , expr : & ' tcx Expr ) {
68
+ impl LateLintPass < ' _ , ' _ > for Unicode {
69
+ fn check_expr ( & mut self , cx : & LateContext < ' _ , ' _ > , expr : & ' _ Expr ) {
70
70
if let ExprKind :: Lit ( ref lit) = expr. node {
71
71
if let LitKind :: Str ( _, _) = lit. node {
72
72
check_str ( cx, lit. span , expr. hir_id )
@@ -122,7 +122,7 @@ fn check_str(cx: &LateContext<'_, '_>, span: Span, id: HirId) {
122
122
cx,
123
123
UNICODE_NOT_NFC ,
124
124
span,
125
- "non-nfc unicode sequence detected" ,
125
+ "non-NFC Unicode sequence detected" ,
126
126
"consider replacing the string with" ,
127
127
string. nfc ( ) . collect :: < String > ( ) ,
128
128
Applicability :: MachineApplicable ,
0 commit comments