mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use asynch
instead of r#async
This is a vestige of the transition from 2015 to 2018 edition Rust. `async` was added as a keyword in 2018 edition Rust, so `cargo fix` changed the variable name here to `r#async`.
This commit is contained in:
parent
12d4c0d5eb
commit
a62a30ef83
3 changed files with 15 additions and 15 deletions
|
@ -340,7 +340,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
&self,
|
||||
method: ByteString,
|
||||
url: USVString,
|
||||
r#async: bool,
|
||||
asynch: bool,
|
||||
username: Option<USVString>,
|
||||
password: Option<USVString>,
|
||||
) -> ErrorResult {
|
||||
|
@ -396,7 +396,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
}
|
||||
|
||||
// Step 10
|
||||
if !r#async {
|
||||
if !asynch {
|
||||
// FIXME: This should only happen if the global environment is a document environment
|
||||
if self.timeout.get() != 0 ||
|
||||
self.response_type.get() != XMLHttpRequestResponseType::_empty
|
||||
|
@ -416,7 +416,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
// Step 12
|
||||
*self.request_method.borrow_mut() = parsed_method;
|
||||
*self.request_url.borrow_mut() = Some(parsed_url);
|
||||
self.sync.set(!r#async);
|
||||
self.sync.set(!asynch);
|
||||
*self.request_headers.borrow_mut() = HeaderMap::new();
|
||||
self.send_flag.set(false);
|
||||
*self.status_text.borrow_mut() = ByteString::new(vec![]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue