summaryrefslogtreecommitdiff
path: root/cli/npm/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/npm/common.rs')
-rw-r--r--cli/npm/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/npm/common.rs b/cli/npm/common.rs
index a3a828e74..de282310a 100644
--- a/cli/npm/common.rs
+++ b/cli/npm/common.rs
@@ -40,7 +40,7 @@ pub fn maybe_auth_header_for_npm_registry(
header::AUTHORIZATION,
header::HeaderValue::from_str(&format!(
"Basic {}",
- BASE64_STANDARD.encode(&format!(
+ BASE64_STANDARD.encode(format!(
"{}:{}",
username.unwrap(),
password.unwrap()