Skip to content

Commit 3121a71

Browse files
committed
Don't bind Operation::Read
1 parent faee9a7 commit 3121a71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cargo/ops/registry/publish.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ pub fn publish(ws: &Workspace<'_>, opts: &PublishOpts<'_>) -> CargoResult<()> {
103103
// This causes the credential provider to be called an extra time, but keeps the same order of errors.
104104
let (pkg, cli_features) = pkgs.pop().unwrap();
105105
let ver = pkg.version().to_string();
106-
let operation = Operation::Read;
107106

108107
let source_ids = super::get_source_id(opts.gctx, reg_or_index.as_ref())?;
109108
let mut registry = super::registry(
@@ -112,7 +111,7 @@ pub fn publish(ws: &Workspace<'_>, opts: &PublishOpts<'_>) -> CargoResult<()> {
112111
opts.token.as_ref().map(Secret::as_deref),
113112
reg_or_index.as_ref(),
114113
true,
115-
Some(operation).filter(|_| !opts.dry_run),
114+
Some(Operation::Read).filter(|_| !opts.dry_run),
116115
)?;
117116
verify_dependencies(pkg, &registry, source_ids.original)?;
118117

0 commit comments

Comments
 (0)