Skip to content

Commit 00081be

Browse files
committed
Rustup
1 parent 9cd778a commit 00081be

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clippy_lints/src/strings.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ impl LintPass for StringLitAsBytes {
144144

145145
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for StringLitAsBytes {
146146
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
147-
use std::ascii::AsciiExt;
148147
use syntax::ast::LitKind;
149148
use utils::{in_macro, snippet};
150149

tests/ui/unicode.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: zero-width space detected
22
--> $DIR/unicode.rs:6:12
33
|
44
6 | print!("Here >​< is a ZWS, and ​another");
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `-D zero-width-space` implied by `-D warnings`
88
= help: Consider replacing the string with:
@@ -12,7 +12,7 @@ error: non-nfc unicode sequence detected
1212
--> $DIR/unicode.rs:12:12
1313
|
1414
12 | print!("̀àh?");
15-
| ^^^^^^^
15+
| ^^^^^
1616
|
1717
= note: `-D unicode-not-nfc` implied by `-D warnings`
1818
= help: Consider replacing the string with:

0 commit comments

Comments
 (0)