mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix use Deref instead
warning
This commit is contained in:
parent
a3fc3a1581
commit
6364636693
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue