Simplify impl for SymbolStr.
This commit is contained in:
parent
3d97a91e7f
commit
44a595f52c
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue