From f5840bdcd360ec0bac2501f333e58e25742b1537 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 27 Jan 2023 10:43:16 -0500 Subject: chore: upgrade to Rust 1.67 (#17548) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- ext/node/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/node/lib.rs') diff --git a/ext/node/lib.rs b/ext/node/lib.rs index 3eda18958..3c0e32308 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -69,7 +69,7 @@ pub static NODE_GLOBAL_THIS_NAME: Lazy = Lazy::new(|| { .unwrap() .as_secs(); // use a changing variable name to make it hard to depend on this - format!("__DENO_NODE_GLOBAL_THIS_{}__", seconds) + format!("__DENO_NODE_GLOBAL_THIS_{seconds}__") }); pub static NODE_ENV_VAR_ALLOWLIST: Lazy> = Lazy::new(|| { @@ -497,7 +497,7 @@ where if request == pkg_name { // pass - } else if request.starts_with(&format!("{}/", pkg_name)) { + } else if request.starts_with(&format!("{pkg_name}/")) { expansion += &request[pkg_name.len()..]; } else { return Ok(None); @@ -579,7 +579,7 @@ where let referrer = Url::from_file_path(parent_path).unwrap(); resolution::package_exports_resolve( &pkg.path, - format!(".{}", expansion), + format!(".{expansion}"), exports, &referrer, NodeModuleKind::Cjs, -- cgit v1.2.3