Skip to content

Commit 36cad92

Browse files
committed
remove redundant Secret::from
1 parent e2832a8 commit 36cad92

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/cargo/ops/registry.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,6 @@ pub fn registry_login(
795795
let source_ids = get_source_id(config, None, reg)?;
796796
let reg_cfg = auth::registry_credential_config(config, &source_ids.original)?;
797797

798-
let token = token.map(Secret::from);
799798
let login_url = match registry(config, token.clone(), None, reg, false, None) {
800799
Ok((registry, _)) => Some(format!("{}/me", registry.host())),
801800
Err(e) if e.is::<AuthorizationError>() => e

0 commit comments

Comments
 (0)