From 7f340578cc33e22dfe09927b696a91d0180fe11d Mon Sep 17 00:00:00 2001 From: Cameron Steffen Date: Mon, 24 May 2021 10:51:33 -0500 Subject: [PATCH] Hash Symbol directly --- clippy_utils/src/hir_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_utils/src/hir_utils.rs b/clippy_utils/src/hir_utils.rs index 6d092680540d..969193d82948 100644 --- a/clippy_utils/src/hir_utils.rs +++ b/clippy_utils/src/hir_utils.rs @@ -745,7 +745,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> { } pub fn hash_name(&mut self, n: Symbol) { - n.as_str().hash(&mut self.s); + n.hash(&mut self.s); } pub fn hash_qpath(&mut self, p: &QPath<'_>) {