diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-16 11:59:46 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-17 22:37:16 +0100 |
| commit | 44a595f52ca0dec2cf7a08ba182ce9f1eb637795 (patch) | |
| tree | 65bbbf7c2946cd626344c0a3bf169737645361bb /src | |
| parent | 3d97a91e7f896e8fbb94fef43dd57f2e6fb061c8 (diff) | |
| download | rust-44a595f52ca0dec2cf7a08ba182ce9f1eb637795.tar.gz rust-44a595f52ca0dec2cf7a08ba182ce9f1eb637795.zip | |
Simplify impl for SymbolStr.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libsyntax_pos/symbol.rs | 3 |
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) } } |
