about summary refs log tree commit diff
path: root/clippy_lints/src/methods/bytes_nth.rs
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2021-10-02 18:51:01 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2021-10-02 19:38:19 -0500
commite165c129324c48a54d321b2dd77e2ff4c7ee9739 (patch)
tree5e61755ae5b692c1e5ce69f0c5d99e3a63325831 /clippy_lints/src/methods/bytes_nth.rs
parent2cb37a19110be1f80133a336acae2072ea8e310d (diff)
Make diangostic item names consistent
Diffstat (limited to 'clippy_lints/src/methods/bytes_nth.rs')
-rw-r--r--clippy_lints/src/methods/bytes_nth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/bytes_nth.rs b/clippy_lints/src/methods/bytes_nth.rs
index 2ad3e673c57..76eaedea8a0 100644
--- a/clippy_lints/src/methods/bytes_nth.rs
+++ b/clippy_lints/src/methods/bytes_nth.rs
@@ -12,7 +12,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, recv: &'tcx E
     let ty = cx.typeck_results().expr_ty(recv).peel_refs();
     let caller_type = if ty.is_str() {
         "str"
-    } else if is_type_diagnostic_item(cx, ty, sym::string_type) {
+    } else if is_type_diagnostic_item(cx, ty, sym::String) {
         "String"
     } else {
         return;