Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
heisen-li committed Apr 1, 2024
1 parent 88b19af commit 7fa0e81
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/cargo/ops/cargo_add/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,8 @@ fn resolve_dependency(
}
dependency = dependency.set_source(src);
} else {
let latest = get_latest_dependency(
spec,
&dependency,
honor_rust_version,
gctx,
registry,
)?;
let latest =
get_latest_dependency(spec, &dependency, honor_rust_version, gctx, registry)?;

if dependency.name != latest.name {
gctx.shell().warn(format!(
Expand Down

0 comments on commit 7fa0e81

Please sign in to comment.