Skip to content

Commit

Permalink
Simplify impl for SymbolStr.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Nov 17, 2019
1 parent 3d97a91 commit 44a595f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libsyntax_pos/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 44a595f

Please sign in to comment.