diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-07-14 07:21:10 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-07-14 07:21:10 -0600 |
commit | 7de4ba0f826f8239d6ac540417028265e62085c5 (patch) | |
tree | 794f82ddf677e435539e5d5eddd5744b5180e169 /components/script/dom/xmlhttprequest.rs | |
parent | 2947d78e4e0e7940b86e9fbdaa784ebbd28740f4 (diff) | |
parent | bc1eb976710fac2c35995996af77f67ba32f2cbb (diff) | |
download | servo-7de4ba0f826f8239d6ac540417028265e62085c5.tar.gz servo-7de4ba0f826f8239d6ac540417028265e62085c5.zip |
Auto merge of #6624 - dzbarsky:23338, r=jdm
Remove some more unnecessary let bindings
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6624)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index f618877f802..d849fbdd3ba 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -623,9 +623,7 @@ impl<'a> XMLHttpRequestMethods for &'a XMLHttpRequest { // https://xhr.spec.whatwg.org/#the-statustext-attribute fn StatusText(self) -> ByteString { - // FIXME(https://github.com/rust-lang/rust/issues/23338) - let status_text = self.status_text.borrow(); - status_text.clone() + self.status_text.borrow().clone() } // https://xhr.spec.whatwg.org/#the-getresponseheader()-method @@ -1031,11 +1029,9 @@ impl<'a> PrivateXMLHttpRequestHelpers for &'a XMLHttpRequest { } - // FIXME(https://github.com/rust-lang/rust/issues/23338) - let response = self.response.borrow(); // According to Simon, decode() should never return an error, so unwrap()ing // the result should be fine. XXXManishearth have a closer look at this later - encoding.decode(&response, DecoderTrap::Replace).unwrap().to_owned() + encoding.decode(&self.response.borrow(), DecoderTrap::Replace).unwrap().to_owned() } fn filter_response_headers(self) -> Headers { // https://fetch.spec.whatwg.org/#concept-response-header-list |