Skip to content

Commit 83a9553

Browse files
committed
fix interning-defined-symbol error
1 parent 99f8607 commit 83a9553

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/methods/get_unwrap.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &hir::Expr<'_>, get_args
2727
} else if is_type_diagnostic_item(cx, expr_ty, sym::vec_type) {
2828
needs_ref = get_args_str.parse::<usize>().is_ok();
2929
"Vec"
30-
} else if is_type_diagnostic_item(cx, expr_ty, sym!(vecdeque_type)) {
30+
} else if is_type_diagnostic_item(cx, expr_ty, sym::vecdeque_type) {
3131
needs_ref = get_args_str.parse::<usize>().is_ok();
3232
"VecDeque"
33-
} else if !is_mut && is_type_diagnostic_item(cx, expr_ty, sym!(hashmap_type)) {
33+
} else if !is_mut && is_type_diagnostic_item(cx, expr_ty, sym::hashmap_type) {
3434
needs_ref = true;
3535
"HashMap"
3636
} else if !is_mut && match_type(cx, expr_ty, &paths::BTREEMAP) {

clippy_lints/src/methods/iter_nth.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub(super) fn check<'tcx>(
1919
"slice"
2020
} else if is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(&iter_args[0]), sym::vec_type) {
2121
"Vec"
22-
} else if is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(&iter_args[0]), sym!(vecdeque_type)) {
22+
} else if is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(&iter_args[0]), sym::vecdeque_type) {
2323
"VecDeque"
2424
} else {
2525
let nth_args = nth_and_iter_args[0];

0 commit comments

Comments
 (0)