Simplify impl for SymbolStr.

This commit is contained in:
Camille GILLOT 2019-11-16 11:59:46 +01:00
parent 3d97a91e7f
commit 44a595f52c

View File

@ -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)
}
}