diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-03-28 04:12:31 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-03-28 04:12:31 +0530 |
commit | b97ffffb48080a0b4769f8609a27a68145042945 (patch) | |
tree | 6a8c50176786ef2fd387292d00aa49b588e187a2 /components/script/dom/bindings/str.rs | |
parent | 0826a5b45455cdbecf484136b1bab39bcc0b15ff (diff) | |
parent | 7c45a4fea031ac97400c6b8416a7b4b897bd0f52 (diff) | |
download | servo-b97ffffb48080a0b4769f8609a27a68145042945.tar.gz servo-b97ffffb48080a0b4769f8609a27a68145042945.zip |
Auto merge of #10222 - faineance:master, r=KiChjang
Use self.0 instead of destructuring single item tuple structs.
Closes #9698.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10222)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/str.rs')
-rw-r--r-- | components/script/dom/bindings/str.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/bindings/str.rs b/components/script/dom/bindings/str.rs index 6276c2c19bd..f1de6297ceb 100644 --- a/components/script/dom/bindings/str.rs +++ b/components/script/dom/bindings/str.rs @@ -58,8 +58,7 @@ impl Into<Vec<u8>> for ByteString { impl Hash for ByteString { fn hash<H: Hasher>(&self, state: &mut H) { - let ByteString(ref vec) = *self; - vec.hash(state); + self.0.hash(state); } } |