mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -865,14 +865,14 @@ impl ModuleOwner {
|
|||
}
|
||||
};
|
||||
|
||||
let r#async = script
|
||||
let asynch = script
|
||||
.root()
|
||||
.upcast::<Element>()
|
||||
.has_attribute(&local_name!("async"));
|
||||
|
||||
if !r#async && (&*script.root()).get_parser_inserted() {
|
||||
if !asynch && (&*script.root()).get_parser_inserted() {
|
||||
document.deferred_script_loaded(&*script.root(), load);
|
||||
} else if !r#async && !(&*script.root()).get_non_blocking() {
|
||||
} else if !asynch && !(&*script.root()).get_non_blocking() {
|
||||
document.asap_in_order_script_loaded(&*script.root(), load);
|
||||
} else {
|
||||
document.asap_script_loaded(&*script.root(), load);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue