Skip to content

Commit bd4ae6e

Browse files
committed
cargo +stable fmt
1 parent 39b168b commit bd4ae6e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/cargo/core/resolver/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,10 @@ fn activate(
610610
if let Some((parent, dep)) = parent {
611611
let parent_pid = parent.package_id();
612612
// add a edge from candidate to parent in the parents graph
613-
cx.parents.link(candidate_pid, parent_pid)
614-
// and associate dep with that edge
615-
.insert(dep.clone());
613+
cx.parents
614+
.link(candidate_pid, parent_pid)
615+
// and associate dep with that edge
616+
.insert(dep.clone());
616617
if let Some(public_dependency) = cx.public_dependency.as_mut() {
617618
public_dependency.add_edge(
618619
candidate_pid,

src/cargo/core/resolver/resolve.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,7 @@ unable to verify that `{0}` is the same as when the lockfile was generated
273273
&self,
274274
pkg: PackageId,
275275
) -> impl Iterator<Item = (PackageId, &HashSet<Dependency>)> {
276-
self.graph
277-
.edges(&pkg)
278-
.map(|(id, deps)| (*id, deps))
276+
self.graph.edges(&pkg).map(|(id, deps)| (*id, deps))
279277
}
280278

281279
pub fn replacement(&self, pkg: PackageId) -> Option<PackageId> {

0 commit comments

Comments
 (0)