Skip to content

Commit 5f4b5b9

Browse files
committed
1 parent 8c20501 commit 5f4b5b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/utils/higher.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ pub fn range<'a, 'b, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'b hir::Expr) -> O
6464
if def_path.data.len() != 3 {
6565
return None;
6666
}
67-
if def_path.data.get(0)?.data.as_interned_str().as_symbol() != sym!(ops) {
67+
if def_path.data.get(0)?.data.as_symbol() != sym!(ops) {
6868
return None;
6969
}
70-
if def_path.data.get(1)?.data.as_interned_str().as_symbol() != sym!(range) {
70+
if def_path.data.get(1)?.data.as_symbol() != sym!(range) {
7171
return None;
7272
}
73-
let type_name = def_path.data.get(2)?.data.as_interned_str();
73+
let type_name = def_path.data.get(2)?.data.as_symbol();
7474
let range_types = [
7575
"RangeFrom",
7676
"RangeFull",

0 commit comments

Comments
 (0)