]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/swap.rs
ast/hir: Rename field-related structures
[rust.git] / clippy_lints / src / swap.rs
index 699fd51ccc194e30d2f16bc978cef70cbb39aba7..9d8a0c248334f582af850002b48f112be4447374 100644 (file)
@@ -199,7 +199,7 @@ fn check_for_slice<'a>(cx: &LateContext<'_>, lhs1: &'a Expr<'_>, lhs2: &'a Expr<
                 if matches!(ty.kind(), ty::Slice(_))
                     || matches!(ty.kind(), ty::Array(_, _))
                     || is_type_diagnostic_item(cx, ty, sym::vec_type)
-                    || is_type_diagnostic_item(cx, ty, sym!(vecdeque_type))
+                    || is_type_diagnostic_item(cx, ty, sym::vecdeque_type)
                 {
                     return Slice::Swappable(lhs1, idx1, idx2);
                 }