Simplify impl for SymbolStr.
This commit is contained in:
parent
3d97a91e7f
commit
44a595f52c
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user