aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_module.rs
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2020-07-16 20:45:24 -0700
committerCamelid <camelidcamel@gmail.com>2020-07-16 20:52:19 -0700
commita62a30ef83ef3925874fe9e8f484b2c4e0dccc54 (patch)
treef74e513876ba87030b2966b7854306ee5653f431 /components/script/script_module.rs
parent12d4c0d5eb029044b347765910a57236343641d7 (diff)
downloadservo-a62a30ef83ef3925874fe9e8f484b2c4e0dccc54.tar.gz
servo-a62a30ef83ef3925874fe9e8f484b2c4e0dccc54.zip
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`.
Diffstat (limited to 'components/script/script_module.rs')
-rw-r--r--components/script/script_module.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_module.rs b/components/script/script_module.rs
index 045c6225337..0352e7fc626 100644
--- a/components/script/script_module.rs
+++ b/components/script/script_module.rs
@@ -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);