summaryrefslogtreecommitdiff
path: root/test_util/src/npm.rs
diff options
context:
space:
mode:
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(),
);