Skip to content

Commit c8de273

Browse files
committed
Example changes
1 parent feb0671 commit c8de273

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

clippy_lints/src/manual_is_ascii_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ fn check_is_ascii(
165165
cx,
166166
MANUAL_IS_ASCII_CHECK,
167167
span,
168-
"manual check for common ascii range",
168+
"manual check for common ASCII range",
169169
|diag| {
170170
diag.multipart_suggestion("try", suggestion, app);
171171
},

clippy_lints/src/operators/identity_op.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,15 @@ fn span_ineffective_operation(
239239
Parens::Unneeded => expr_snippet,
240240
};
241241

242-
span_lint_and_sugg(
243-
cx,
244-
IDENTITY_OP,
245-
span,
246-
"this operation has no effect",
247-
"consider reducing it to",
248-
suggestion,
249-
applicability,
250-
);
242+
if false {
243+
span_lint_and_sugg(
244+
cx,
245+
IDENTITY_OP,
246+
span,
247+
"this operation has no effect",
248+
"consider reducing it to",
249+
suggestion,
250+
applicability,
251+
);
252+
}
251253
}

0 commit comments

Comments
 (0)