about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2019-11-16 11:59:46 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-11-17 22:37:16 +0100
commit44a595f52ca0dec2cf7a08ba182ce9f1eb637795 (patch)
tree65bbbf7c2946cd626344c0a3bf169737645361bb /src/libsyntax_pos
parent3d97a91e7f896e8fbb94fef43dd57f2e6fb061c8 (diff)
downloadrust-44a595f52ca0dec2cf7a08ba182ce9f1eb637795.tar.gz
rust-44a595f52ca0dec2cf7a08ba182ce9f1eb637795.zip
Simplify impl for SymbolStr.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/symbol.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs
index f6377633857..d885133db65 100644
--- a/src/libsyntax_pos/symbol.rs
+++ b/src/libsyntax_pos/symbol.rs
@@ -1157,8 +1157,7 @@ impl fmt::Display for SymbolStr {
 impl<CTX> HashStable<CTX> for SymbolStr {
     #[inline]
     fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) {
-        let str = self as &str;
-        str.hash_stable(hcx, hasher)
+        self.string.hash_stable(hcx, hasher)
     }
 }