Skip to content

Commit 009c290

Browse files
committed
switched to ticks for chars
1 parent db391c4 commit 009c290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ranges.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
149149
let start = start.map_or("".to_owned(), |x| Sugg::hir(cx, x, "x").to_string());
150150
let end = Sugg::hir(cx, y, "y");
151151
if let Some(is_wrapped) = &snippet_opt(cx, expr.span) {
152-
if is_wrapped.starts_with("(") && is_wrapped.ends_with(")") {
152+
if is_wrapped.starts_with('(') && is_wrapped.ends_with(')') {
153153
db.span_suggestion(expr.span,
154154
"use",
155155
format!("({}..={})", start, end));

0 commit comments

Comments
 (0)