Skip to content

Commit 9d18985

Browse files
fix: refactor to resolve "cannot find value output_cargo_configuration in this scope"
Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
1 parent 0798b2b commit 9d18985

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

cargo/src/cargo_commands.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,18 +270,11 @@ pub fn cargo_vendor(
270270
}
271271
info!("🛡️🙂 All lockfiles are audited");
272272

273-
if !global_has_deps {
274-
info!("🎉 Nothing to vendor.");
275-
return Ok(Some((
276-
possible_lockfile
277-
.canonicalize()
278-
.unwrap_or(possible_lockfile),
279-
output_cargo_configuration,
280-
)));
281-
}
282-
283273
match res {
284274
Ok(output_cargo_configuration) => {
275+
if !global_has_deps {
276+
info!("🎉 Nothing to vendor.");
277+
}
285278
info!("🏪 `cargo {}` finished.", &which_subcommand);
286279
Ok(Some((
287280
possible_lockfile

0 commit comments

Comments
 (0)