Skip to content
Permalink
Browse files

Fix `use Deref instead` warning

  • Loading branch information
mttr committed Jan 8, 2015
1 parent a3fc3a1 commit 6364636693f4b96a6f57348980dc1e4a085e98f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/script/dom/xmlhttprequest.rs
@@ -923,7 +923,7 @@ impl<'a> PrivateXMLHttpRequestHelpers for JSRef<'a, XMLHttpRequest> {

fn dispatch_response_progress_event(self, type_: DOMString) {
let len = self.response.borrow().len() as u64;
let total = self.response_headers.borrow().get::<ContentLength>().map(|x| {x.len() as u64});
let total = self.response_headers.borrow().get::<ContentLength>().map(|x| {**x as u64});
self.dispatch_progress_event(false, type_, len, total);
}
fn set_timeout(self, timeout: u32) {

0 comments on commit 6364636

Please sign in to comment.
You can’t perform that action at this time.