diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-05-24 10:51:33 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-05-24 10:51:40 -0500 |
| commit | 7f340578cc33e22dfe09927b696a91d0180fe11d (patch) | |
| tree | e26d1a54bf6bea5a5d9ce0f16754bb177f123f6b | |
| parent | 9d61b4e081b05228186aeb62a79ab33c28f39f6f (diff) | |
| download | rust-7f340578cc33e22dfe09927b696a91d0180fe11d.tar.gz rust-7f340578cc33e22dfe09927b696a91d0180fe11d.zip | |
Hash Symbol directly
| -rw-r--r-- | clippy_utils/src/hir_utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/hir_utils.rs b/clippy_utils/src/hir_utils.rs index 6d092680540..969193d8294 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<'_>) { |
