@@ -56,17 +56,17 @@ declare_clippy_lint! {
5656 ///
5757 /// **Known problems** None.
5858 ///
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
6060 /// former when escaped is actually `"a\u{300}"` while the latter is `"\u{e0}"`.
6161 pub UNICODE_NOT_NFC ,
6262 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)"
6464}
6565
6666declare_lint_pass ! ( Unicode => [ ZERO_WIDTH_SPACE , NON_ASCII_LITERAL , UNICODE_NOT_NFC ] ) ;
6767
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 ) {
7070 if let ExprKind :: Lit ( ref lit) = expr. node {
7171 if let LitKind :: Str ( _, _) = lit. node {
7272 check_str ( cx, lit. span , expr. hir_id )
@@ -122,7 +122,7 @@ fn check_str(cx: &LateContext<'_, '_>, span: Span, id: HirId) {
122122 cx,
123123 UNICODE_NOT_NFC ,
124124 span,
125- "non-nfc unicode sequence detected" ,
125+ "non-NFC Unicode sequence detected" ,
126126 "consider replacing the string with" ,
127127 string. nfc ( ) . collect :: < String > ( ) ,
128128 Applicability :: MachineApplicable ,
0 commit comments