Skip to content

Commit 44a595f

Browse files
committed
Simplify impl for SymbolStr.
1 parent 3d97a91 commit 44a595f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/libsyntax_pos/symbol.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,7 @@ impl fmt::Display for SymbolStr {
11571157
impl<CTX> HashStable<CTX> for SymbolStr {
11581158
#[inline]
11591159
fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) {
1160-
let str = self as &str;
1161-
str.hash_stable(hcx, hasher)
1160+
self.string.hash_stable(hcx, hasher)
11621161
}
11631162
}
11641163

0 commit comments

Comments
 (0)