Skip to content

Commit 7f34057

Browse files
committed
Hash Symbol directly
1 parent 9d61b4e commit 7f34057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/hir_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
745745
}
746746

747747
pub fn hash_name(&mut self, n: Symbol) {
748-
n.as_str().hash(&mut self.s);
748+
n.hash(&mut self.s);
749749
}
750750

751751
pub fn hash_qpath(&mut self, p: &QPath<'_>) {

0 commit comments

Comments
 (0)