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:
Camelid 2020-07-16 20:45:24 -07:00
parent 12d4c0d5eb
commit a62a30ef83
3 changed files with 15 additions and 15 deletions

View file

@ -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);