summaryrefslogtreecommitdiff
path: root/test_util/src/npm.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 /test_util/src/npm.rs
parent1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff)
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'test_util/src/npm.rs')
-rw-r--r--test_util/src/npm.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test_util/src/npm.rs b/test_util/src/npm.rs
index 738a1090a..9600b0bce 100644
--- a/test_util/src/npm.rs
+++ b/test_util/src/npm.rs
@@ -113,14 +113,13 @@ fn get_npm_package(package_name: &str) -> Result<Option<CustomNpmPackage>> {
let mut dist = serde_json::Map::new();
dist.insert(
"integrity".to_string(),
- format!("sha512-{}", tarball_checksum).into(),
+ format!("sha512-{tarball_checksum}").into(),
);
dist.insert("shasum".to_string(), "dummy-value".into());
dist.insert(
"tarball".to_string(),
format!(
- "http://localhost:4545/npm/registry/{}/{}.tgz",
- package_name, version
+ "http://localhost:4545/npm/registry/{package_name}/{version}.tgz"
)
.into(),
);