summaryrefslogtreecommitdiff
path: root/cli/node/analyze.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-01-27 10:43:16 -0500
committerGitHub <noreply@github.com>2023-01-27 10:43:16 -0500
commitf5840bdcd360ec0bac2501f333e58e25742b1537 (patch)
tree7eb0818d2cafa0f6824e81b6ed2cfb609830971e /cli/node/analyze.rs
parent1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff)
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/node/analyze.rs')
-rw-r--r--cli/node/analyze.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/node/analyze.rs b/cli/node/analyze.rs
index fd131c551..d1046e275 100644
--- a/cli/node/analyze.rs
+++ b/cli/node/analyze.rs
@@ -76,11 +76,11 @@ pub fn esm_code_with_node_globals(
let global_this_expr = if has_global_this {
global_this_expr
} else {
- write!(result, "var globalThis = {};", global_this_expr).unwrap();
+ write!(result, "var globalThis = {global_this_expr};").unwrap();
"globalThis"
};
for global in globals {
- write!(result, "var {0} = {1}.{0};", global, global_this_expr).unwrap();
+ write!(result, "var {global} = {global_this_expr}.{global};").unwrap();
}
let file_text = text_info.text_str();